Getting Started
Foundations
Components
Search for a command to run...
Menu bars provide a familiar navigation pattern similar to desktop applications, offering organized access to commands and features. Each menu in the bar contains a dropdown of related actions, settings, or navigation options.
import { Menubar } from "@strongtie/design-system/menubar"This module exports the following components:
MenubarMenubarCheckboxItemMenubarContentMenubarGroupMenubarItemMenubarLabelMenubarMenuMenubarPortalMenubarRadioGroupMenubarRadioItemMenubarSeparatorMenubarShortcutMenubarSubMenubarSubContentMenubarSubTriggerMenubarTrigger<MenubarItem>| Prop | Type | Default | Description |
|---|---|---|---|
inset | boolean | - | |
variant | default | destructive | - |
<MenubarLabel>| Prop | Type | Default | Description |
|---|---|---|---|
inset | boolean | - |
<MenubarMenu>| Prop | Type | Default | Description |
|---|
<MenubarSubTrigger>| Prop | Type | Default | Description |
|---|---|---|---|
inset | boolean | - |
Components can be styled using the className prop. The design system uses Tailwind CSS for styling.
CSS classes used by this component:
menubarmenubar-checkbox-itemmenubar-contentmenubar-itemmenubar-labelmenubar-radio-itemmenubar-separatormenubar-shortcutmenubar-sub-contentmenubar-sub-triggermenubar-triggerEnsure proper accessibility attributes are added when implementing this component.