Skip to content

Flint Range Slider ​

Loading...
  • Tag: <flint-range-slider>
  • Class: FlintRangeSlider

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintRangeSlider } from 'flint-ui';

Usage ​

html
<flint-range-slider></flint-range-slider>

Properties ​

PropertyAttributeTypeDefaultDescription
valuevalue[number, number][25, 75]
minminnumber0Minimum allowed value.
maxmaxnumber100Maximum allowed value.
stepstepnumber1Step increment between values.
sizesize'sm' | 'md' | 'lg''md'Visual size of the track and thumbs.
disableddisabledbooleanfalseWhether the slider is disabled.
labellabelstring''Label text displayed above the slider.
showValueshow-valuebooleanfalseWhether to display the current start and end values.

Events ​

EventDetailDescription
flint-range-slider-change{ value: this.value }

CSS Custom Properties ​

PropertyDefault
--flint-range-slider-fill-color—
--flint-range-slider-track-height—
--flint-range-slider-track-color—
--flint-range-slider-thumb-size—
--flint-range-slider-thumb-color—
--flint-range-slider-thumb-border—
--flint-font-family—
--flint-text-color—
--flint-input-border-color—
--flint-primary-color—
--flint-surface-1—
--flint-text-color-muted—
--flint-shadow-sm—
--flint-shadow-md—