Skip to content

ActionSheet ​

Action list in a bottom drawer

A short list of actions from the bottom of a phone screen — share, edit, delete. On wide screens a DropdownMenu next to the button fits better.

Basic

Episode 3

  • A Drawer holding buttons: Esc, the backdrop and Cancel close it. @select fires for a chosen action and @cancel only when it was dismissed without one.
  • danger marks destructive actions; grid lays icons out in a grid; cancel (default) adds the Cancel row.

Usage ​

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

API ​

Props

NameTypeDefaultDescription
actions*BlessAction[]—
titlestring—
gridboolean—icon grid instead of a list
cancelLabelstring"Cancel"
cancelbooleantrueshow a cancel row at the bottom
openbooleanfalse

Events

NamePayloadDescription
update:open[value: boolean]
cancel[]
select[action: BlessAction]

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