v2.0.0
75%

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 { AlphaSlider } from '@dryui/ui';
</script>

<AlphaSlider>Content</AlphaSlider>

Import options

Root package

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

Per-component subpath

ts
import { AlphaSlider } from '@dryui/ui/alpha-slider'

API

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

Prop Type Description Default Required Bindable
value
number
Current controlled or bindable value. 100
color
string
Semantic color or tone applied to the component. 'hsl(230
min
number
Minimum allowed value. 0
max
number
Maximum allowed value. 100
step
number
Step interval used when incrementing numeric values. 1
onchange
(value: number) => void