Menubar
A menu bar providing commands and options for your application.
Anatomy
Import the component and assemble its parts:
Anatomy
API reference
modal boolean true
- Name
- Description
Whether the menubar is modal.
- Type
boolean- Default
true
disabled boolean | null false
- Name
- Description
Whether the whole menubar is disabled.
- Type
boolean | null- Default
false
orientation MenubarOrientation 'horizontal'
- Name
- Description
The orientation of the menubar.
- Type
MenubarOrientation- Default
'horizontal'
loopFocus boolean true
- Name
- Description
Whether to loop keyboard focus back to the first item when the end of the list is reached while using the arrow keys.
- Type
boolean- Default
true
render Snippet<[props: HTMLAttributes<HTMLDivElement>, state: MenubarState, children: Snippet | undefined]> —
- Name
- Description
Replace the default
<div>. Spreadpropsonto the host element.- Type
Snippet<[props: HTMLAttributes<HTMLDivElement>, state: MenubarState, children: Snippet | undefined]>
orientation MenubarOrientation
- Name
orientation- Description
The orientation of the menubar.
- Type
MenubarOrientation
modal boolean
- Name
modal- Description
Whether the menubar is modal.
- Type
boolean
hasSubmenuOpen boolean
- Name
hasSubmenuOpen- Description
Whether any menu within the menubar is open.
- Type
boolean
data-orientation
Determines the orientation of the menubar.
data-has-submenu-open
Present when any submenu within the menubar is open.
data-modal
Present when the corresponding menubar is modal.