Theme

Start Here

Start from the smallest working snippet, then move to interactive examples and the full API contract below.

Styled quick start

Copy this entrypoint first. It includes the imports required to get the component on screen.

svelte
<script lang="ts">
  import '@dryui/ui/themes/default.css';
  import '@dryui/ui/themes/dark.css';
  import { Slider } from '@dryui/ui';
</script>

<Slider bind:value={volume} min={0} max={100} />

Import options

Root package

ts
import { Slider } from '@dryui/ui'

Per-component subpath

ts
import { Slider } from '@dryui/ui/slider'

Customize

Use the interactive examples to see common variants, states, and composition patterns before building your own.

Default

svelte
<Slider />

With Value Display

Volume: 50

svelte
<script lang="ts">
  let volume = $state(50);
</script>
<Slider bind:value={volume} min={0} max={100} />
<p>Volume: {volume}</p>

Min / Max / Step

svelte
<Slider min={0} max={200} step={10} value={100} />

Sizes

svelte
<Slider size="sm" />
<Slider size="md" />
<Slider size="lg" />

Disabled

svelte
<Slider disabled value={40} />

Compose

The full API contract lives here: props, CSS variables, and the public data attributes you can target when styling.

Prop Type Default Required Bindable
value
number
50
min
number
max
number
step
number
size
smmdlg
'md'
disabled
boolean
orientation
horizontalvertical

Forwards <input> attributes via rest props. Common examples: name, autocomplete, inputmode. Omitted: size.