MCPcopy Create free account
hub / github.com/SyntaxUI/syntaxui / handleNext

Function handleNext

src/showcase/components/stepper/DottedStepper.tsx:115–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113 const [currentStep, setCurrentStep] = useState(1)
114
115 const handleNext = () => {
116 setCurrentStep((prev) => Math.min(prev + 1, steps.length - 1))
117 }
118
119 const handlePrev = () => {
120 setCurrentStep((prev) => Math.max(prev - 1, 0))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected