OptionButton
moleculesSelection card that gains a coloured ring and tint when selected; tone recolours each picker; row and block turn it into a list item.
Effort picker
selected with onclick; label over hint inside the card; the grid wraps on narrow screens.
Tone, row and block
tone per card; description is announced via aria-describedby; onfocuschange drives the preview on hover or arrow keys; row and block make left-aligned list items.
Safest: nothing runs without a prompt.
States
disabled selected and unselected, a card with a long label and description wrapping, and a Badge-only card.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
selected | boolean | false | |
tone | Tone | 'accent' | Colour of the selected ring and tint. |
row | boolean | false | |
align | 'center' | 'start' | 'center' | Horizontal content alignment. `start` gives a left-aligned list-row variant (pair with `block` for a full-width menu item). |
block | boolean | false | Stretch to fill the container width (full-width list/menu row). |
value | string | — | Identifies this option in `onfocuschange`. |
description | string | — | Secondary text under the content, announced via `aria-describedby`. |
onfocuschange | (value: string) => void | — | Fires with `value` when the button gains keyboard focus or pointer hover, so a consumer can drive a preview pane across a set of cards. |
sound | boolean | true | Play UI sounds when enabled globally; false silences this instance. |
children | Snippet | — |