Skip to content

useStep ​

Category
Utilities

Hook that create stepper

typescript
import { useStep } from '@siberiacancode/reactuse';

Usage ​

typescript
const stepper = useStep(5);

Demo ​

Api ​

Parameters

NameTypeDefaultNote
maxnumber-Maximum number of steps

Parameters

NameTypeDefaultNote
params.maxnumber-Maximum number of steps
params.initialnumber-Initial value for step

Contributors ​

Source • Demo