Skip to content
loseta

Components / Navigation

Menubar

Displays a horizontal bar of menus.

Status stableInstalls menu, popover-primitive

Installation

pnpm dlx loseta add menubar
npx loseta add menubar

Examples

Checkbox

Radio

With icons

Right-to-left

Accessibility and behavior

  • role="menubar" with .menubar-item wrappers (role="none"). Each trigger is role="menuitem" with aria-haspopup="menu" and aria-expanded; panels are [data-popover] with [role="menu"]. Nested submenus use a role="none" wrapper inside the menu and data-side="inline-end" panels. Roving focus and arrow keys are consumer JavaScript; there is no built-in mobile layout.

Files

components/menubar.cssbase
styles/nova/menubar.cssstyle

Install contract

The CLI writes the base file under components/, the visual file for the selected style under styles/<name>/, and any primitive dependency underprimitives/. The generated index.css imports them in the right layer order.

← Back to components

loseta is MIT licensed. Built with native CSS, no runtime. Inspired byshadcn/ui.