Speed Dial
stableA floating action menu.
Basic usage
Examples
Open action menu
Use defaultOpen for uncontrolled demos and action discovery.
Controlled speed dial
Control open state when the speed dial is coordinated with other app state.
Direction and tooltips
SpeedDial supports direction, hidden, custom icons and action tooltip labels.
Features
- Controlled or uncontrolled open state.
- Action list.
Installation
bash
pnpm dlx structyl add speed-dialAPI Reference
SpeedDial.Root
Floating action menu root.
| Prop | Type | Default |
|---|---|---|
| open | defaultOpen | booleanControlled or uncontrolled open state. | — |
| onOpenChange | (open: boolean) => voidOpen state callback. | — |
| direction | 'up' | 'down' | 'left' | 'right'Action expansion direction. | 'up' |
| hidden | booleanUnmount the speed dial. | false |
| className | stringAdditional Tailwind classes merged with the component defaults. | — |
SpeedDial.Trigger
Floating trigger.
| Prop | Type | Default |
|---|---|---|
| icon | openIcon | React.ReactNodeClosed and open icons. | — |
| className | stringAdditional Tailwind classes merged with the component defaults. | — |
SpeedDial.Action
Action button.
| Prop | Type | Default |
|---|---|---|
| tooltipTitle | React.ReactNodeTooltip text. | — |
| tooltipOpen | booleanForce tooltip visible. | false |
| className | stringAdditional Tailwind classes merged with the component defaults. | — |