Skip to content
nexubDesign System
v2.4.0

Components · Mobile only · Overlays

Context Menu

AlphaiOS & Android

Long-press menu with the actions also exposed as accessibility actions.

Usage

@nexub/react-nativeWeb: ContextMenu
import { ContextMenu } from '@nexub/react-native';

<ContextMenu actions={actions}><ListItem title="Amazon" value="−S$42.50" /></ContextMenu>

Interactive preview of @nexub/react-native rendered for the web. Native chrome (switches, pickers, Liquid Glass) looks like the platform on a device.

On device

Context Menu on iPhone (iOS simulator)

iPhone (iOS simulator)

Context Menu on Pixel (Android emulator)

Pixel (Android emulator)

Screenshots from the latest CI run of the showcase app; the live frame renders the same code for the web.

ContextMenu props

ContextMenu props (React Native)
PropTypeDefaultDescription
actionsrequiredSheetAction[]——
titlestring——
childrenrequiredReact.ReactNode——
onPress() => void—Tap action of the wrapped content (long-press opens the menu).
accessibilityLabelstring——
styleStyleProp<ViewStyle>——