Action Sheet
Offer a short list of choices about an action: from the bottom of the screen, or growing out of the button that presents it, as on iOS 26.
Installation
Usage
[(open)]two-way binds a signal. Set it totrueto slide the sheet up.- Tapping an item emits its
pressed, then closes the sheet. You don't need to setopenyourself. - Tapping Cancel or the backdrop, or Android's back button, closes the sheet without emitting anything.
- The title and items stack in one rounded group.
<ui-action-sheet-cancel>always renders as its own tile below the group, wherever you put it. - Items and the title render their content in a
<text>, so put plain text in them. - The sheet draws in an
<overlay>, so it covers the whole screen wherever it sits in your template. - When it opens, a screen reader moves into the sheet and stays inside it until the sheet closes.
From its control
Mark the button that presents the sheet with [uiActionSheetAnchor], and the sheet opens from it:
#draftSheetnames the sheet, and[uiActionSheetAnchor]points the button at it. The directive only says where the sheet opens from. Open it as before, from the button's own handler.- Nothing dims, and the rest of the screen stays usable. A touch outside the sheet closes it, and still reaches what it touched. Android's back button closes it too.
- There's no Cancel button. A touch outside is the cancel, as iOS and Material menus have it. Keep
<ui-action-sheet-cancel>for the platforms that still show one. - The button hides while the sheet covers it. One that's glass itself (
<blur-view ui-glass [uiActionSheetAnchor]>) hands its glass over to the sheet on iOS 26, as a menu's trigger does.
On Android, a Material 3 bottom sheet is the counterpart of the sheet from the bottom. Material puts choices about a button in a menu by that button, so the anchored sheet is one. It shares its placement with Popover and Menu.
Destructive items
variant="destructive" colors an item's text red, for actions such as delete.
Navigate from an item
Navigate from pressed, as from any tap handler:
You can also wait for closed, which emits after the slide-down animation, from a timer.
Cancel label
API
UiActionSheet
UiActionSheetAnchor
Selector: [uiActionSheetAnchor]. Put it on the control that presents the sheet.
UiActionSheetItem
UiActionSheetCancel
No outputs. Tapping it closes the sheet.
All sub-components (UiActionSheetTitle, UiActionSheetItem, UiActionSheetCancel) accept class. Items and Cancel only work inside a <ui-action-sheet>, because they close it.
Theme colors
Opened from its control, the sheet's text reads glass-foreground and glass-muted-foreground. See Glass.
Accessibility
- Items and Cancel are buttons, and the title is a heading, to a screen reader.
- From the bottom, a screen reader moves into the sheet and stays there until it closes.
- From its control, a screen reader moves into the sheet, and the rest of the screen stays reachable, as it does for touch.
- Reduce Motion: a sheet from its control appears in place, and its choices fade in.
Related
- Dialogs and overlays: how overlays work and which one to use
- Sheet: a panel from the bottom for any content
- Alert Dialog: confirm one action in a centered panel
- Bottom Sheet: a bare panel to lay out yourself
- Popover: any content, opened from its control the same way
- Menu and Context Menu: actions in a menu beside the button or element that opens it
