MenuLayout
A menu layout: a menu area and a content area (children), with the menu placed by menuPosition. When the menu is collapsed its subtree is not rendered, avoiding invisible focus traps.
Basic usage
Menu position and collapsing
menuPosition takes before (left, default) / after (right) / top / bottom; showMenu={false} collapses the menu. expanded decides whether the layout fills the parent (true, default) or shrinks to content (static).
The expanded (default) form fills the parent with absolute positioning — the parent must position and size itself; expanded={false} is the static form that shrinks to content (the demos above use it). Menu width and placement details come from the theme CSS. For finished components with full menu interaction, see BookletLayout and IndexLayout.
API
Inherits all Layout props (including the hidden three states), plus:
See also
- Finished components built from it: BookletLayout, IndexLayout
- The
hiddenthree-state semantics: Layout