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'

API

Props, CSS variables, and the public data attributes you can target when styling.

Prop Type Description Default Required Bindable
size
smmdlg
Size preset affecting density, spacing, or typography. 'md'
variant
defaultpill
Visual style preset for the component. 'default'
valueLabel
Snippet<[{ value: number; percentage: number }]>
value
number
Current controlled or bindable value. 50
min
number
Minimum allowed value. 0
max
number
Maximum allowed value. 100
step
number
Step interval used when incrementing numeric values. 1
disabled
boolean
Prevents interaction and applies disabled styling. false
orientation
horizontalvertical
Horizontal or vertical layout direction. 'horizontal'