Glowup
FEEDBACK · 66 / 89
Menu
Menu — a Material You feedback component for React Native and web.
󱀫
packages/ui/src/components/Menu.tsx
Live demo
Properties
2 controls
Visible
Close On Select
Usage
Menu.tsx
<Menu visible={false} />
Variants
The states and shapes this component is meant to be used in.
Context menu
With disabled items
Account menu
closeOnSelect={false} keeps the menu open while items are pressed.
API reference
Generated from the library's TypeScript, so it cannot drift from the implementation.
Props
5 on MenuProps
anchor
required
React.ReactElement
items
required
MenuItem[]
onDismiss
required
() => void
visible
required
boolean
closeOnSelect
boolean
default: true
Close the menu automatically after an item is pressed. Default true.