Menu
The iOS pop-up menu: a sheet of actions that floats out of the control which opened it and sinks back once one is chosen. The caller keeps open and puts aria-expanded on that control; onClose runs after the chosen action.
function Menu({ open, onClose, items, footer, size = 16, itemStyle, xstyle, animate, ...props }: MenuProps)The sheet carries no coordinates of its own, so xstyle both places it — pinned to a corner, or stacked above a toolbar — and tints it: a menu over a map wants a near-opaque white, one over a night sky wants the dark glass. itemStyle is the app's type step and padding for a row.
items is the column of rows, with 'separator' where iOS rules a line between groups. footer is the row of glyph-over-caption buttons some menus end in, Safari's Bookmarks and All Tabs.
API reference
| Prop | Type | Default | Description |
|---|---|---|---|
open | boolean | - | |
onClose | () => void | - | |
items | MenuEntry[] | - | |
footer? | MenuItem[] | - | |
size? | number | 16 | Row glyph size; a menu set in a smaller type step wants a smaller one. |
itemStyle? | KitStyle | - |
Also accepts Omit<PrimitiveProps<'div'>, 'children' | 'as'>. Raw style and className are refused.