AlphaSlider
Slider for selecting alpha/opacity values in color pickers
Accessibility
- Pair the control with a visible label or aria-label and keep helper or error text programmatically associated.
- Preserve expected keyboard entry, selection, and state announcements for the chosen input pattern.
- If content auto-advances, provide pause or stop controls and respect reduced-motion preferences.
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 | — | — | — | — |