Dinachi

Menubar

A horizontal menu bar with dropdown menus, commonly used for application-level navigation and actions.

View Source

#Installation

npx @dinachi/cli@latest add menubar

#Usage

tsx
import { Menubar, MenubarMenu, MenubarTrigger, MenubarPortal, MenubarContent, MenubarItem, MenubarCheckboxItem, MenubarRadioGroup, MenubarRadioItem, MenubarLabel, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubTrigger, MenubarSubContent } from '@/components/ui/menubar'

#Examples

#API Reference

PropTypeDefaultDescription
loopFocusbooleantrueWhether to loop keyboard focus back to the first item when the end is reached.
modalbooleantrueWhether the menubar is modal.
disabledbooleanfalseWhether the whole menubar is disabled.
orientation'horizontal' | 'vertical''horizontal'The orientation of the menubar.