Simal UI
Components

ContextMenu

WEB APPROXIMATION — this is the long-press menu.

On iOS it is a native UIContextMenu with a lifted preview of the pressed element and haptic feedback; neither exists on web. Long-press the card below to open the Material fallback, then check the real thing on a simulator.

Import

import { ContextMenu } from '@simal/ui/nativewindui';

Props

PropValuesDefaultDescription
items[]Menu entries. destructive: true colours one red; subMenu nests another level. Order is render order.
onItemPressFires with the pressed item. Match on actionKeytitle is display text and will change.
childrenThe element being long-pressed. On iOS it lifts and blurs its surroundings, so give it a solid background or it will look transparent while open.

Examples

With Icons

On this page