Skip to content

SpeedDial ​

FAB with fan-out actions

A floating button that fans out a few (two to five) creation actions on a phone screen — new message, new photo. On wide screens, put the actions in the page instead.

Basic
  • The button says whether it's open; the actions are hidden (inert) until it is. Esc closes it and returns focus to the button, and so does leaving it with Tab.
  • Each action needs a label: it names the button and shows as its tip. direction sets which way they fan; inline renders it in place.

Usage ​

ts
import { BlessSpeedDial } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
actions*BlessSpeedDialAction[]—
direction"left" | "right" | "down" | "up""up"
labelstring"Actions"
color"text" | "accent""text"
inlineboolean—render in place instead of fixed bottom-right
openbooleanfalse

Events

NamePayloadDescription
update:open[value: boolean]
select[action: BlessSpeedDialAction]

Slots

NameScopeDescription
icon—
action{ action: BlessSpeedDialAction; }

Released under the MIT License. Character names and artwork belong to their owners.