SoundSettings
moleculesOpt-in UI sound: a speaker popover with the on/off switch, a volume slider, a preview button and the reason nothing plays.
Settings toolbar
size="sm" beside the theme and text-size pickers; the switch state and volume persist.
Sizes
size="sm" and "md" set the trigger box and the panel density; variant and tone pass to the trigger.
Palette
sound.play(name) for every SoundName; silent until sounds are on.
Turn sounds on to audition the palette.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
size | 'sm' | 'md' | 'md' | |
box | 'xs' | 'sm' | 'md' | 'lg' | size | Shared square box scale (`--box-xs/sm/md/lg`) for an icon-only trigger, pinning the square exactly. The default trigger floors at the `sm` box and grows with its content; override that floor with `style="min-width: …; min-height: …"` for any other square. |
placement | Placement | 'bottom-end' | |
variant | TriggerVariant | — | Button-compatible trigger chrome. Omitting every chrome prop preserves the original ghost icon-button trigger. `toggle` renders the trigger as the `Toggle` chip itself, so a trigger and a Toggle side by side share one box — `size`, `pill` and `pressed` behave as they do on `Toggle`. |
tone | TriggerTone | — | |
pill | boolean | — | Fully rounded trigger (`--r-pill`), as on `Button`. |
control | boolean | — | Uniform toolbar/composer control height; follows a sized `Cluster`. |
block | boolean | — | |
bare | boolean | — | Drop the default ghost-icon chrome so the trigger is an unstyled button you fully own (pair with `triggerClass`). |
hitArea | 'auto' | 'compact' | — | Icon-only triggers grow a touch hit slab on coarse pointers; `compact` opts out. |
disabled | boolean | — | |
label | string | 'Sound' | |
switchLabel | string | 'Sound effects' | |
volumeLabel | string | 'Volume' | |
previewLabel | string | 'Preview' | |
offHint | string | 'Off. Nothing is loaded until you turn it on.' | |
reducedMotionHint | string | 'Decorative sounds are muted because your system asks for reduced motion.' | |
class | string | '' | |
style | string | '' |