We use cookies to ensure you get the best experience on our website. Read our privacy policy

Skip to main content

Directory

Slider Component

The Slider component provides an intuitive way to select numeric values within a specified range. It’s perfect for settings, filters, and any interface where users need precise control over numeric inputs.

  • Check Circle

    Custom Styling: Multiple variants and sizes

  • Check Circle

    Value Display: Optional value indicator

  • Check Circle

    Form Integration: Native form support

  • Check Circle

    Accessibility: Full keyboard and screen reader support

Create a simple slider with a value and range:

<Slider
min={0}
max={100}
value={50}
/>
Default Variant
Square Variant
Thin Variant
Small
Default
Large

Add labels and value displays:

Volume Control
75
Adjust system volume
<Slider
label="Volume Control"
sublabel="Adjust system volume"
showValue={true}
min={0}
max={100}
value={75}
/>
Slider Component Props Extends <input> HTMLElement
Prop Type Default Description
label string Label text for the slider
sublabel string Additional description text
showValue boolean false Show current value display
size sm | default | lg default Size of the slider
variant default | filled filled Visual style variant

Limited Time Launch Sale

Get our AstroJS starter template now and build stunning websites with professional-grade components like this customizable slider!

GET 60% OFF!
North Star Themes Logo

Subscribe to our newsletter

Get the latest AstroJS tips and tricks right to your inbox

Email: [email protected]

© 2025 North Star Themes

Web Kit Provided By North Star Themes