Slider

A slider is, at minimum, made of a track and thumb. The slider can have one thumb for the user to select a single value or two thumb to select a range.

TypeResource
DesignFigma
WebWeb Storybook
CodeGitlab
100

Usage

import { Slider } from 'bio-bind-ui';
<Slider
  errorText='Error message'
  id='slider'
  label='Label'
  max={100}
  min={0}
  mode='light'
  name='slider'
  onSliderChange={() => {}}
  showMaxValue
  showMinValue
  size='md'
  variant='primary'
/>

Examples

Secondary Color

Slider component have 2 variant color, primary and secondary

100

Mode (Optional)

Use mode to use dark or light

100

Range (Optional)

Whether the slider is a range slider or not

0
100

Props

PropsRequiredDefaultTypedescription
variantfalseprimaryprimary secondarySlider variant
sizefalsemdsm md lgSize of the slider
modefalselightlight darkLight & dark mode for slider
isRangefalsefalsebooleanWhether the slider is a range slider or not
isErrorfalsefalsebooleanWhether the radio button is in error state or not
errorTextfalse-stringFor showing error text
disabledfalsefalsebooleanWhether the slider should be disabled or not
labeltruelabelstringLabel for the slider
mintrue0number[]Slider min value
showMinValuetruefalsebooleanWhether to show the min value or not
maxtrue100number[]Slider max value
showMaxValuetruefalsebooleanWhether to show the max value or not
idtruesliderstringId for the slider
nametruesliderstringName for the slider
onSliderChangetrue-functionCallback function to run when the slider value is changed
BIND © Biofarma Innovate Next-level Design .