-
Notifications
You must be signed in to change notification settings - Fork 468
Closed
Description
Like RangeSlider but decides its range based on the underlying data, i.e. dynamically.
Component Props
- componentId
String
component ID. - appbaseField
String
DB field to be mapped with UI for querying. Should be numeric. - title
String
title of the component, optional. - rangeLabels
Function[optional]
takes afunction(start_val, end_val)and returns an object in the format:
{
"start": "start label",
"end": "end label"
}
- defaultSelected
Function[optional]
takes afunction(start_val, end_val)and returns an object in the format:
{
"start": 0,
"end": 10
}
- showHistogram
Boolean
whether to show the histogram. Defaults totrue. - stepValue
Number
step value specifies the slider stepper. Value should be an integer between 1 and floor(#total-range/2). Defaults to 1.
CSS Styles API
rbc-histogram-active
rbc-rangelabels-active
rbc-title-active
Stories
- Basic story
- Story with passing labels via a function
- With default selected
- With a different step value than 1
- In a dark theme
- Playground.
Reactions are currently unavailable