Simal UI
Components

DropdownMenu

Anchored menu opened from its children trigger.

On iOS this is a native UIMenu; what renders here is the Material popover.

Items are data, not JSX — each needs a unique actionKey, which is what onItemPress reports back.

Import

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

Props

PropValuesDefaultDescription
items[]Menu entries. Supports icon, state: { checked } for a checkmark, destructive, and subMenu for one nested level.
onItemPressFires with the pressed item. Match on actionKey, not title.
childrenThe trigger. Tapping it opens the menu anchored to that element — there is no imperative open method.

Examples

With Icons And State

With Sub Menu

Nested submenus and disabled entries.

On this page