Skip to content

Type Editor


Type Editor / @type-editor/menu / types/MenuBarOptions / MenuBarOptions

Interface: MenuBarOptions

Defined in: packages/menu/src/types/MenuBarOptions.ts:6

Configuration options for the menu bar plugin.

Properties

PropertyTypeDescriptionDefined in
contentreadonly readonly MenuElement[][]Provides the content of the menu, as a nested array to be passed to renderGrouped.packages/menu/src/types/MenuBarOptions.ts:12
floating?booleanDetermines whether the menu floats, i.e. whether it sticks to the top of the viewport when the editor is partially scrolled out of view. Default falsepackages/menu/src/types/MenuBarOptions.ts:21
isLegacy?booleanBackward compatibility flag to enable legacy menu rendering.packages/menu/src/types/MenuBarOptions.ts:31
showLabel?booleanDetermines whether to show labels for menu items (if applicable, e.g. in DropdownMenu).packages/menu/src/types/MenuBarOptions.ts:26