Slider
Selection & Input · Guide 28 of 46
Purpose
Single or multi-thumb value range.
Import
<script lang="ts">
import { Slider } from 'bits-ui';
</script>The registry names Slider as this guide’s namespace. Copy the exact root and part composition from the live demo rather than guessing part names.
Usage checklist
- Define the value shape, allowed range, and empty state before wiring UI.
- Provide labels, instructions, and validation feedback.
- Test keyboard, pointer, touch, and programmatic value changes.
Secondary reference
After using the local example, consult the upstream Bits UI reference for exhaustive API details.
Continue
- Previous: Combobox
- Index: All component guides
- Next: PIN Input