Put the trigger and the content in the root. Put a label in each action, so it has a name.
create-dial.tsx
SpeedDial
<div>| Prop | Type | Default | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| side | "bottom""inline-end""inline-start""top" | "top" | The side the actions open to. Default top. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| size | "default""lg""sm" | "default" | The trigger and action sizes: sm 40/32, default 48/40, lg 56/44 px. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| variant | "default""gooey" | "default" | default: popover actions with a border. gooey: primary actions that melt out of the trigger and back in (an SVG goo filter on a blob layer behind them). | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| children | ReactNode | — | The trigger and the content. A dial has no payload, so no function children. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
From Base UIMenu.RootBase UI docs | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| default | boolean | false | Whether the menu is initially open. To render a controlled menu, use the open prop instead. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| loop | boolean | true | Whether to loop keyboard focus back to the first item when the end of the list is reached while using the arrow keys. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| highlight | boolean | true | Whether moving the pointer over items should highlight them. Disabling this prop allows CSS :hover to be differentiated from the :focus (data-highlighted) state. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ...props | <div> attributes | — | Every other attribute goes to the <div>. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
SpeedDialTrigger
<button>| Prop | Type | Default | Description | ||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| class | string | — | |||||||||||||||||||||||||||||||||||
From Base UIMenu.TriggerBase UI docs | |||||||||||||||||||||||||||||||||||||
| children | ReactNode | — | |||||||||||||||||||||||||||||||||||
| disabled | boolean | false | Whether the component should ignore user interaction. | ||||||||||||||||||||||||||||||||||
| handle | MenuHandle<unknown> | — | A handle to associate the trigger with a menu. | ||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
| ...props | <button> attributes | — | Every other attribute goes to the <button>, with a ref. | ||||||||||||||||||||||||||||||||||
SpeedDialContent
<div>| Prop | Type | Default | Description | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| class | string | — | ||||||||
| backdrop | boolean | false | Dim the page under the dial (Base UI Menu.Backdrop, the overlay backdrop color). | |||||||
| portal | — | Other Base UI props of the inner parts. A className here adds to the component classes. | ||||||||
| positioner | — | |||||||||
| backdrop | PopupPartProps<MenuBackdropProps> | — | ||||||||
From Base UIMenu.PopupBase UI docs | ||||||||||
| children | ReactNode | — | ||||||||
| id | string | — | ||||||||
| final | — | Determines the element to focus when the menu is closed. - false: Do not move focus. - true: Move focus based on the default behavior (trigger or previously focused element). - RefObject: Move focus to the ref element. - function: Called with the interaction type (mouse, touch, pen, or keyboard). Return an element to focus, true to use the default behavior, or false/undefined to do nothing. | ||||||||
| ||||||||||
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. | |||||||
SpeedDialItem
<div>| Prop | Type | Default | Description | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| class | string | — | |||||||||||||||||||||||||||
From Base UIMenu.ItemBase UI docs | |||||||||||||||||||||||||||||
| on | — | The click handler for the menu item. | |||||||||||||||||||||||||||
| disabled | boolean | false | Whether the component should ignore user interaction. | ||||||||||||||||||||||||||
| label | string | — | Overrides the text used for keyboard text navigation and filtering. Falls back to the rendered text when not provided. | ||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. | ||||||||||||||||||||||||||
SpeedDialLinkItem
<a>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
From Base UIMenu.LinkItemBase UI docs | |||
| label | string | — | Overrides the text used for keyboard text navigation and filtering. Falls back to the rendered text when not provided. |
| id | string | — | |
| close | boolean | false | Whether to close the menu when the item is clicked. |
| ...props | <a> attributes | — | Every other attribute goes to the <a>, with a ref. |
SpeedDialLabel
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
AnimatedPlusIcon
<svg>| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "bulk""duotone""solid""stroke""twotone" | — | stroke (default): 1.5 strokes. solid: the body filled, inner details cut through. duotone: a 40% fill under the stroke. twotone: the details at 40%. bulk: the body filled at 40% with no outline, the details at full color. |
| corners | "round""sharp" | — | round (default): round caps and joins, soft corners. sharp: square caps, miter joins. |
| open | boolean | false | Open: the plus has turned into a cross (the action is "close"). Default: the plus. |
| ...props | <svg> attributes | — | Every other attribute goes to the <svg>, with a ref. |
| EnterorSpace | Opens the dial from the trigger, or runs the highlighted action. |
|---|---|
| ↑ ↓ | Moves between the actions on top and bottom. |
| ← → | Moves between the actions on inline-start and inline-end. |
| HomeorEnd | Moves to the first or the last action. |
| Escape | Closes the dial and puts the focus back on the trigger. |
Built with
Installs with Speed Dial
- Parts
- Animated Plus Icon









