0.0.2 • Published 8 months ago

@licuido-ui/ui_range-slider v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

RangeSlider

RangeSlider can be used to set the start and end of a range by supplying an array of values to the value prop.

Author

Link

Story Book Link Range Slider

PlayGround

Try it have a fun codeBox

Installation

npm i  @licuido-ui/ui_range-slide

Import component

import { RangeSlider } from '@licuido-ui/ui_range-slide';

Usage

<RangeSlider value={[20, 50]} thumbColor={'green'} step={5} />

Image

alt text

Sample Code

<RangeSlider
  value={[30, 70]}
  step={10}
  marks={[]}
  disabled={false}
  sliderColor={'green'}
  thumbColor={'green'}
  sliderHeight={8}
  customMarks={false}
  minMaxValues={true}
  valueLabelDisplay={'off'}
  handleChangeFun={() => false}
  sliderStyle={{}}
  maxLabelStyle={{}}
  minLabelStyle={{}}
  containerStyle={{}}
  sliderThumbStyle={{}}
  minMaxLabelColor={'#929292'}
  minMaxLabelSize={12}
  minMaxValueColor={'#262626'}
  minMaxValueSize={14}
  minLabel={'Min'}
  maxLabel={'Max'}
  markLabelColor={'#707070'}
  markLabelSize={12}
/>

Props

NameDescriptionDefaultControl
idstringstringstringstring
valuenumber[][20,30]20 ,30
handleChangeFun()=>{}--
markLabelColorstring"#707070"linear-gradient(to right, rgba(255,0,0,0), rgba(255,0,0,1))
markLabelSizenumber1212
minLabelstring"Min"Min
maxLabelstring"Max"Max
sliderHeightnumber88
sliderColorstring"#665CD7"linear-gradient(to right, rgba(255,0,0,0), rgba(255,0,0,1));
thumbColorstring"#665CD7"linear-gradient(to right, rgba(255,0,0,0), rgba(255,0,0,1));
disabledbooleanfalseFalse or True
valueLabelDisplay"off" or "on""off""off"
stepnumber1010
customMarksbooleanfalseFalse or True
minMaxValuesbooleanfalseFalse or True
sliderStyleSxProps<{}>{ }sliderStyle : {}
maxLabelStyleSxProps<{}>{ }maxLabelStyle : {}
minLabelStyleSxProps<{}>{ }minLabelStyle : {}
containerStyleSxProps<{}>{ }containerStyle : {}
sliderThumbStyleSxProps<{}>{ }sliderThumbStyle : {}
marks{ value: number; label: string; }[][][]
classNamestring-Set string
sxSxProps<Theme>-Set object
size"small" or "medium" or "large"smallsmall
minMaxLabelColorstring"#929292"linear-gradient(to right, rgba(255,0,0,0), rgba(255,0,0,1));
minMaxLabelSizenumber12Set number
minMaxValueColorstring"#262626"linear-gradient(to right, rgba(255,0,0,0), rgba(255,0,0,1));
minMaxValueSizenumber14Set number