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

Function NavigationButtons

src/showcase/components/stepper/DottedStepper.tsx:97–110  ·  view source on GitHub ↗
({ currentStep, totalSteps, handlePrev, handleNext })

Source from the content-addressed store, hash-verified

95 handlePrev: () => void
96 handleNext: () => void
97}> = ({ currentStep, totalSteps, handlePrev, handleNext }) => (
98 <div className="flex justify-end gap-3">
99 {currentStep === 0 ? null : (
100 <button onClick={handlePrev} className={ButtonClasses}>
101 Previous
102 </button>
103 )}
104 {currentStep === totalSteps - 1 ? null : (
105 <button onClick={handleNext} className={ButtonClasses}>
106 Next
107 </button>
108 )}
109 </div>
110)
111
112const Stepper: React.FC = () => {
113 const [currentStep, setCurrentStep] = useState(1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected