MenuProps
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.
type MenuProps = Omit<PrimitiveProps<'div'>, 'children' | 'as'> & {
open: boolean
onClose: () => void
items: MenuEntry[]
footer?: MenuItem[]
/** Row glyph size; a menu set in a smaller type step wants a smaller one. */
size?: number
itemStyle?: KitStyle
}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
type MenuProps = Omit<PrimitiveProps<'div'>, 'children' | 'as'> & {
open: boolean
onClose: () => void
items: MenuEntry[]
footer?: MenuItem[]
/** Row glyph size; a menu set in a smaller type step wants a smaller one. */
size?: number
itemStyle?: KitStyle
}