MotionSettings
moleculesPer-family micro-interaction picker: one compact select per family (button hover, checkbox, radio, switch, focus, tabs, copy, link, card), persisted and painted as data-fx-* on <html>.
Settings toolbar
size="sm" beside the other preference controls; choices persist and apply page-wide.
Families and state
families restricts and orders the rows; fx.settings is the live state, fx.reset() restores the defaults.
- Button hover
- data-fx-hover="smoke"
- Checkbox
- data-fx-check="draw"
- Radio
- data-fx-radio="spring"
- Switch
- data-fx-switch="squash"
- Input focus
- data-fx-focus="bloom"
- Tabs
- data-fx-tabs="pill"
- Copy
- data-fx-copy="burst"
- Link hover
- data-fx-link="sweep"
- Card hover
- data-fx-card="spotlight"
Scoped override
data-fx-* on any ancestor overrides the page setting for that subtree; "none" turns a family off.
smoke · draw · squash
ember · pop · glow
aurora · confetti · calm
none · none · none
Props
| Prop | Type | Default | Description |
|---|---|---|---|
families | readonly FxFamily[] | FX_FAMILIES | Restrict and order the offered families. |
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 | 'Motion' | |
resetLabel | string | 'Reset' | |
reducedMotionHint | string | 'Your system asks for reduced motion: effects show their static fallback.' | |
onchange | (settings: FxSettings) => void | — | |
class | string | '' | |
style | string | '' |