--- title: 'Input Range: Use Cases' parts: - Input Range - Use Cases eleventyNavigation: key: 'Input Range: Use Cases' order: 20 parent: Input Range title: Use Cases --- # Input Range: Use Cases ```js script import { html } from '@mdjs/mdjs-preview'; import '@lion/ui/define/lion-input-range.js'; ``` ## Units ```html preview-story ``` ## Steps ```html preview-story ``` ## Without Min Max Labels ```html preview-story ``` ## Disabled ```html preview-story ``` ## Range Styles Often, you will style your own range input by changing the pseudo-elements for the slider track and thumb. These pseudo-elements do not play nice with `::slotted`. As per [specification](https://drafts.csswg.org/css-scoping/#slotted-pseudo): > The ::slotted() pseudo-element can be followed by a tree-abiding pseudo-element, > like ::slotted()::before, representing the appropriate pseudo-element of the elements > represented by the ::slotted() pseudo-element. The pseudo-elements associated with the slider track/thumb are not tree-abiding, so you can't do: ```css ::slotted(.form-control)::-webkit-slider-runnable-track ``` This means you will need to style the slotted native input from the LightDOM, and for this we added added our ScopedStylesController as a controller to `LionInputRange`. This controller inserts a `