VolumeSlider
moleculesMute button and level slab in one control: drag, arrow keys or the wheel set the level, and the icon follows it.
Call controls
bind:value (0–1) and bind:muted; dragging the level up from zero unmutes, and onmutechange reports the toggle.
Speaker
Amara Okafor
Jun Tanaka
Lena Fischer
Sizes, orientation and levels
size="sm" | "md"; orientation="vertical" for mixers; the icon steps through volume, volume-low, volume-high and volume-mute.
sm · md 0 · 30% · 80% · muted
Music
Voice
Effects
Ambience
States
disabled; hideOnTouch={false} keeps the slab on phones (the default leaves only the mute button, since phones use hardware keys); step sets the arrow and wheel increment.
disabled: no output device
step 0.25 · 50% · 0 changes
Props
| Prop | Type | Default | Description |
|---|---|---|---|
value bindable | number | 1 | Level 0–1. |
muted bindable | boolean | false | |
orientation | 'horizontal' | 'vertical' | 'horizontal' | |
size | 'sm' | 'md' | 'sm' | |
step | number | 0.05 | Level per arrow key or wheel notch. |
disabled | boolean | false | |
hideOnTouch | boolean | true | |
label | string | 'Volume' | |
muteLabel | string | 'Mute' | |
unmuteLabel | string | 'Unmute' | |
sound | boolean | true | Play UI sounds when enabled globally; false silences this instance. |
oninput | (value: number) => void | — | |
onchange | (value: number) => void | — | |
onmutechange | (muted: boolean) => void | — | |
class | string | '' | |
style | string | — |