Action Sheet

A choice of actions from the bottom of the screen, with an optional title and message.

import { ActionSheet } from "@plexui/react-native"

A question with its answers is a Dialog.

Examples

Overview

Actions alone

From its button

Platforms

iOS 26Android
Native componentAction sheet (confirmation dialog)Modal bottom sheet with a list
LookA glass panel of capsules: in the middle of the screen with Cancel its last capsule, or at its source with no CancelA menu sheet: 48dp rows, each icon in a 56dp slot, no handle

API

ActionSheet

PropTypeDefaultDescription
openboolean—Shows the sheet (required)
onOpenChange(open: boolean) => void—Called with false when an action, the cancel, a tap outside or Back closes it (required)
titleReactNode—A title over the actions
messageReactNode—A message under the title
actionsActionSheetAction[]—The actions (required)
cancelLabelstring"Cancel"The cancel action of iOS, the last capsule of the panel; a sheet with a source has none. Android has none
sourceRefObject<View>—The control the sheet opens from (a ref to a Button, a Pressable, a View): on iOS 26 the sheet stands at it as a glass panel, with no Cancel, and a tap elsewhere closes it. Android keeps its sheet from the bottom
testIDstring—Test id

ActionSheetAction

PropTypeDefaultDescription
labelstring—The action's label (required)
onPress() => void—Called when the action is pressed, before the sheet closes
iconReactNode—A symbol before the label; Android's list shows it, iOS leaves it out
destructivebooleanfalseA red action
disabledbooleanfalseDims the action and takes no presses
testIDstring—Test id