Slider component
A Slider component
Install
npm i @wethecurious/wtc-ui-library
Usage
Import it into your project
import { Slider } from '@wethecurious/wtc-ui-library'
<Slider size={Size.XXS}
label='slider'
handleChange={handleValueChange}
minValue={0}
maxValue={10}
currentValue={7}
/>
Props
Prop | Description | Default |
---|---|---|
size | Specify size of the slider | |
label | Set slider label | |
handleChange | Callback to handle the slider change | |
minValue | Min value for slider | |
maxValue | Max slider value | |
currentValue | Current slider value |