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
- A Drawer holding buttons: Esc, the backdrop and Cancel close it.
@selectfires for a chosen action and@cancelonly when it was dismissed without one. dangermarks destructive actions;gridlays icons out in a grid;cancel(default) adds the Cancel row.
Usage
ts
import { BlessActionSheet } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
actions* | BlessAction[] | — | |
title | string | — | |
grid | boolean | — | icon grid instead of a list |
cancelLabel | string | "Cancel" | |
cancel | boolean | true | show a cancel row at the bottom |
open | boolean | false |
Events
| Name | Payload | Description |
|---|---|---|
update:open | [value: boolean] | |
cancel | [] | |
select | [action: BlessAction] |