Docs
Slider

Slider

An input where the user selects a value from within a given range.

Installation

	npx shadcn-svelte@next add slider

Usage

	<script lang="ts">
  import { Slider } from "$lib/components/ui/slider/index.js";
  let value = $state(33);
</script>
 
<Slider type="single" bind:value max={100} step={1} />

Examples

Multiple Thumbs

	<script lang="ts">
  import { Slider } from "$lib/components/ui/slider/index.js";
  let value = $state([25, 75]);
</script>
 
<Slider type="multiple" bind:value max={100} step={1} />