ActionSheet
A set of actions for the current context, with cancel.
- Native host
- Liquid Glass on iOS 26
- New in 0.1
import { ActionSheet, actionSheetPrimitive } from "nitro-ui-sdk/action-sheet";- HeroUI Native
- No counterpart
- Expo UI
- ConfirmationDialog

Light 
Dark 
Liquid Glass
On this page
ActionSheet presents actions for the current context. Use Menu for hierarchical commands or Popover for anchored information with a small number of actions.
Anatomy
import { ActionSheet } from "nitro-ui-sdk/action-sheet";
<ActionSheet.Root label="Manage draft" title="Draft actions" actions={[]}>
<ActionSheet.Trigger />
<ActionSheet.Content />
</ActionSheet.Root>;
| Part | Description |
|---|---|
| Root | Owns visibility and action dispatch. |
| Trigger | Named button and iPad anchor. |
| Content | Mounts the native presentation. |
Usage
import { ActionSheet } from "nitro-ui-sdk/action-sheet";
<ActionSheet.Root
label="Manage draft"
title="Draft actions"
actions={[
{ id: "archive", label: "Archive", onPress: () => {} },
{ id: "cancel", label: "Cancel", role: "cancel", onPress: () => {} },
]}
/>;
Variants and sizes
The platform uses its system size and presentation. Each action can be default, destructive or cancel. Supply at most one cancel action. UIKit decides where to place it.
States
Disable the trigger with disabled, or apply it to an individual choice. An action can decline with details.preventDefault(). An outside tap can dismiss an anchored sheet on iPad.
Controlled
import { useState } from "react";
import { ActionSheet } from "nitro-ui-sdk/action-sheet";
export function DraftActions() {
const [open, setOpen] = useState(false);
return <ActionSheet.Root label="Manage draft" title="Draft actions" actions={[]} open={open} onOpenChange={setOpen} />;
}
Use defaultOpen for uncontrolled initial visibility.
Liquid Glass
UIKit controls the system action sheet appearance, including Liquid Glass on iOS 26. The kit’s material preference controls the trigger. Android presents an opaque list.
Props
Root
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | required | Trigger name. |
| title | string | required | Presentation name and heading. |
| message | string | — | Supporting text. |
| actions | readonly ActionSheetAction[] | required | Choices with unique IDs, names, activation callbacks and optional roles, disabled flags and confirmations. |
| open / defaultOpen | boolean | false | Controlled or initial visibility. |
| onOpenChange | (open, details) => void | — | Visibility request with source. |
| disabled | boolean | false | Gates opening and choice activation. |
| styles | ActionSheetStyles | — | Part style resolvers. |
| api | Controller |
— | Controller binding. |
| agentId | string | — | Stable agent identity. |
| children | ReactNode | default anatomy | Custom composition. Include a Trigger and Content. |
Trigger
| Prop | Type | Default | Description |
|---|---|---|---|
| part | ActionSheetPart | trigger | Style part to resolve. |
| children | string | Root label | Override trigger label. |
Content
| Prop | Type | Default | Description |
|---|---|---|---|
| part | ActionSheetPart | content | Style part for the native host. |
Controller API
import { useState } from "react";
import { ActionSheet, actionSheetPrimitive } from "nitro-ui-sdk/action-sheet";
export function DraftActions() {
const [api] = useState(actionSheetPrimitive.createApi);
return <ActionSheet.Root api={api} label="More" title="Draft actions" actions={[]} />;
}
| Action | Signature | Result |
|---|---|---|
| open | (source?) => ChangeStatus | Open, request opening or report a blocked request. |
| press | (id, source?) => ActionStatus | Run a choice and request dismissal if accepted. |
| cancel | (source?) => ChangeStatus | Request dismissal without invoking a choice callback. |
Styles
import { ActionSheet } from "nitro-ui-sdk/action-sheet";
<ActionSheet.Root
label="Manage"
title="Draft actions"
actions={[]}
styles={{ trigger: ({ tokens }) => ({ style: { cornerRadius: tokens.radius.full } }) }}
/>;
Resolvers receive tokens, system for variant and size, and open and disabled state fields. The OS owns the action layout.
Accessibility
The trigger is a named button. The native presentation supplies title, message, action roles and disabled states. Supply a localized cancel label on a cancel action when the user needs a visible way to dismiss.
Agent API
| Action | Arguments | Notes |
|---|---|---|
| open | None | Opens from the trigger. |
| press | Action ID string | Runs the specified choice. Supply localized confirm text on destructive actions that require approval. |
| cancel | None | Requests dismissal of the foreground presentation. |
Platform notes
| iOS | Android | |
|---|---|---|
| Implementation | UIAlertController in action-sheet style, anchored to the trigger on iPad. |
Platform AlertDialog with action rows and a cancel button when configured. |
| Verification | iOS harness on iPhone simulator. | Implementation written. Build and runtime verification require an Android NDK. |