Skip to contents

Menubar

A menu bar providing commands and options for your application.

View as Markdown

Anatomy

Import the component and assemble its parts:

Anatomy

API reference

loopFocus
boolean
true
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 | undefined
Default
true
modal
boolean
true
Name
Description

Whether the menubar is modal.

Type
boolean | undefined
Default
true
disabled
boolean
false
Description

Whether the whole menubar is disabled.

Type
boolean | undefined
Default
false
orientation
MenuRoot.Orientation
'horizontal'
Description

The orientation of the menubar.

Type
MenuRoot.Orientation | undefined
Default
'horizontal'
className
string | function
Description

CSS class applied to the element, or a function that returns a class based on the component’s state.

Type
style
React.CSSProperties | function
Name
Type
render
ReactElement | function
Name
Description

Allows you to replace the component’s HTML element with a different tag, or compose it with another component.

Accepts a ReactElement or a function that returns the element to render.

Type

Additional Types

Menubar.Props

Re-Export of Menubar props as MenubarProps

Menubar.State