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.directionsets which way they fan.inlinerenders it in place.
Usage
ts
import { BlessSpeedDial } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
actions* | BlessSpeedDialAction[] | — | |
direction | "up" | "down" | "left" | "right" | "up" | |
label | string | "Actions" | |
color | "text" | "accent" | "text" | |
inline | boolean | — | render in place instead of fixed at the bottom end corner |
open | boolean | false |
Events
| Name | Payload | Description |
|---|---|---|
update:open | [value: boolean] | |
select | [action: BlessSpeedDialAction] |
Slots
| Name | Scope | Description |
|---|---|---|
icon | — | |
action | { action: BlessSpeedDialAction; } |