0.3.5 • Published 4 years ago
@bdt-component-library/slider v0.3.5
Slider Component
About
This is a component published as its own package from our component library monorepo: https://github.com/BenefitsDataTrust/ui-components. Setup instructions, as well as higher-level goals and concerns can be found from the main project README.
Description
Handles display of input sliders.
API
| prop | type | required | default | explanation |
|---|---|---|---|---|
| id | string | no | n/a | Adds id attr for component |
| testId | string | no | "" | Adds an optional data-testid for testing purposes |
| className | string | no | n/a | Adds an optional classname to the main component |
| name | string | no | n/a | Adds name attr for input |
| defaultValue | number | no | n/a | Adds default value for input |
| minValue | number | no | n/a | Sets aria value for minimum range |
| maxValue | number | no | n/a | Sets aria value for maximum range |
| handleChange | function | no | n/a | Handles onchange events for the slider input |