--- title: Slider sidebar_label: Slider --- import { StoryWithControls } from '../../../src/components/StorybookWrapper'; # Slider A slider input for selecting a value or range from a continuous or stepped interval. Supports single value, range, vertical orientation, marks, and tooltip display. ## Live Example ## Try It Edit the code below to experiment with the component: ```tsx live function Demo() { return (
); } ``` ## Range Slider ```tsx live function RangeSliderDemo() { return (

Basic Range


Draggable Track

); } ``` ## With Marks ```tsx live function MarksDemo() { return (
); } ``` ## Stepped and Dots ```tsx live function SteppedDemo() { return (

Step = 10 with Dots


Step = 25

); } ``` ## Vertical Slider ```tsx live function VerticalDemo() { return (
); } ``` ## Props | Prop | Type | Default | Description | |------|------|---------|-------------| | `min` | `number` | `0` | Minimum value of the slider. | | `max` | `number` | `100` | Maximum value of the slider. | | `defaultValue` | `number` | `70` | Initial value of the slider. | | `step` | `number` | `1` | Step increment between values. Use null for marks-only mode. | | `disabled` | `boolean` | `false` | Whether the slider is disabled. | | `reverse` | `boolean` | `false` | Whether to reverse the slider direction. | | `vertical` | `boolean` | `false` | Whether to display the slider vertically. | | `keyboard` | `boolean` | `true` | Whether keyboard arrow keys can control the slider. | | `dots` | `boolean` | `false` | Whether to show dots at each step mark. | | `included` | `boolean` | `true` | Whether to highlight the filled portion of the track. | ## Import ```tsx import { Slider } from '@superset/components'; ``` --- :::tip[Improve this page] This documentation is auto-generated from the component's Storybook story. Help improve it by [editing the story file](https://github.com/apache/superset/edit/master/superset-frontend/packages/superset-ui-core/src/components/Slider/Slider.stories.tsx). :::