RadialMenu
moleculesA round FAB that fans MenuItems out as petals on an arc over a scrim; tap to toggle, press-and-slide to pick, arrows to walk.
Game HUD bottom bar
items fan out above the bar; icon, caption and tone style the FAB; status is a line centred above the open arc.
HUD Map Camera Logs
Tones, arcs and petal sizes
tone colours the ring; arc {from,to} in degrees (0 = right, counter-clockwise); radius and petalSize are CSS lengths; scrim={false} drops the backdrop.
Bound open, disabled petals, custom trigger, corner clamp
bind:open drives it from outside; disabled items stay visible but inert; a trigger snippet replaces the FAB face; the fan clamps into the viewport.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items required | MenuItem[] | — | |
label required | string | — | Accessible name of the trigger and the menu. |
open bindable | boolean | false | |
onopen | () => void | — | |
onclose | () => void | — | |
trigger | Snippet<[{ open: boolean }]> | — | Replaces the default FAB content. |
icon | IconName | 'plus' | |
closeIcon | IconName | 'x' | |
caption | Snippet | string | — | Small line under the FAB glyph ("● bot"). |
tone | Tone | 'accent' | Colour of the FAB ring. |
arc | RadialArc | { from: 200, to: -20 } | |
radius | string | — | Preferred arc radius; defaults to 8.5rem. |
petalSize | string | — | Petal diameter; defaults to 3.5rem. |
scrim | boolean | true | |
status | Snippet | — | A line centred above the arc while open. |
class | string | '' | |
style | string | '' | |
sound | boolean | true | Play UI sounds when enabled globally; false silences this instance. |