Menu

A menu of actions from a trigger, with icons, descriptions, checkmarks, labels, separators and submenus.

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

Examples

Overview

From a list row

From a wide button

From a bar's buttons

Platforms

iOS 26Android
Native componentMenuMenu
LookA 250pt glass panel with 34pt corners and 17pt rowsA popup: a white (night: dark gray) panel with 12dp corners, 48dp items in 16sp, groups parted by an 8dp band
MotionGrows out of its trigger (iOS 27.2's morph) and goes back into itUnrolls from its trigger as its rows fade in; a submenu slides in, and a swipe takes it back
From a list rowOpens at its buttonDims the screen around the row, the popup 8dp under the row at its end

API

PropTypeDefaultDescription
childrenReactNode—Menu.Trigger and Menu.Content
openboolean—Controlled open state; without it the menu keeps its own
onOpenChange(open: boolean) => void—Called when the menu opens or closes
PropTypeDefaultDescription
childrenReactElement—The element that opens the menu: a Button or anything with onPress, which still runs
styleStyleProp<ViewStyle>—Style of the view around the trigger, measured to place the menu

Where the menu stands when something else opens it through open: a row whose press opens the menu, with its More drawn as a mark rather than a button, so the web gets no button inside a button. A ListItem with menu sets one up for you.

PropTypeDefaultDescription
childrenReactNode—What marks the menu's place: the menu stands at it as at a trigger
styleStyleProp<ViewStyle>—Style of the view around the anchor, measured to place the menu
PropTypeDefaultDescription
childrenReactNode—Items, separators and labels
align"start" | "center" | "end"—The menu's edge that lines up with the trigger's, or center for the menu centred on it. By default iOS places it as UIKit does, by where the trigger stands (the leading third: its leading edge; the trailing third: its trailing edge; else centred); Android at its start
widthnumber250 on iOSWidth of the menu; on Android it fits its items, 196 to 288
multiplebooleanfalseSeveral options to pick: a press on an item with `checked` checks or unchecks it and the menu stays open; the items read as checkboxes
coverbooleantrueOpens over the trigger; `false` opens it under the trigger, its top at the trigger's bottom edge, as Material's dropdown menu under a chip
aria-labelstring—Accessible name of the menu
testIDstring—Test id
PropTypeDefaultDescription
childrenReactNode—The item's label
iconReactNode—A symbol at the leading edge
descriptionReactNode—A second line under the label
dangerbooleanfalseA destructive item, in the danger color
disabledbooleanfalseDims the item and takes no presses
checkedboolean—The checkmark of a chosen option; a menu whose items set it (true or false) keeps a column for the checkmark and names its items as radio items
trailingReactNode—An element at the row's end, after its label (4 after it on iOS, 12 on Android, whose popup widens for it): as a messenger's first row of a message's menu shows who reacted, an AvatarGroup of 24 with cutoutColor="transparent"
onSelect() => void—Called when the item is chosen; the menu closes after it
testIDstring—Test id
PropTypeDefaultDescription
childrenReactNode—A Menu.SubTrigger and its Menu.SubContent
PropTypeDefaultDescription
childrenReactNode—The row's label, which also heads the open submenu on iOS
iconReactNode—A symbol at the leading edge
disabledbooleanfalseDims the row and takes no presses
testIDstring—Test id
PropTypeDefaultDescription
childrenReactNode—The submenu's items, separators and labels
backLabelstring"Back"Android: the row that goes back to the menu

Menu.Separator takes no props. Menu.Label takes its text as children.