# Range [component-header:sl-range] Ranges allow the user to select a single value within a given range using a slider. ```html preview ``` ?> This component doesn't work with standard forms. Use [``](/components/form) instead. ## Examples ### Disabled Use the `disabled` attribute to disable a slider. ```html preview ``` ### Tooltip Placement By default, the tooltip is shown on top. Set `tooltip` to `bottom` to show it below the slider. ```html preview ``` ### Disable the Tooltip To disable the tooltip, set `tooltip` to `none`. ```html preview ``` ### Custom Track Colors You can customize the active and inactive portions of the track using the `--track-color-active` and `--track-color-inactive` custom properties. ```html preview ``` ### Custom Tooltip Formatter You can change the tooltip's content by setting the `tooltipFormatter` property to a function that accepts the range's value as an argument. ```html preview ``` ### Labels Use the `label` attribute to give the range an accessible label. For labels that contain HTML, use the `label` slot instead. ```html preview ``` ### Help Text Add descriptive help text to a range with the `help-text` attribute. For help texts that contain HTML, use the `help-text` slot instead. ```html preview ``` [component-metadata:sl-range]