structyl

Speed Dial

stable

A 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-dial

API Reference

SpeedDial.Root

Floating action menu root.

PropTypeDefault
open | defaultOpenboolean

Controlled or uncontrolled open state.

onOpenChange(open: boolean) => void

Open state callback.

direction'up' | 'down' | 'left' | 'right'

Action expansion direction.

'up'
hiddenboolean

Unmount the speed dial.

false
classNamestring

Additional Tailwind classes merged with the component defaults.

SpeedDial.Trigger

Floating trigger.

PropTypeDefault
icon | openIconReact.ReactNode

Closed and open icons.

classNamestring

Additional Tailwind classes merged with the component defaults.

SpeedDial.Action

Action button.

PropTypeDefault
tooltipTitleReact.ReactNode

Tooltip text.

tooltipOpenboolean

Force tooltip visible.

false
classNamestring

Additional Tailwind classes merged with the component defaults.

Speed Dial | structyl