Skip to content
Calm motion: animations on this site only fade, with no movement

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 is 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"up" | "down" | "left" | "right""up"
labelstring"Actions"
color"text" | "accent""text"
inlineboolean—render in place instead of fixed at the bottom end corner
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.