Menubar

A capsule of menu titles whose menus share one panel of glass.

Installation#

pnpmnpmyarnbun
$ pnpm dlx shadcn@latest add @liquikit/menubar

Needs the @liquikit registry in your components.json. Set it up once.

Usage#

import { Menubar } from "@/components/liquikit/menubar"
import { Menu } from "@/components/liquikit/menu"
<Menubar.Root>
  <Menubar.Menu>
    <Menubar.Trigger>File</Menubar.Trigger>
    <Menubar.Popup>
      <Menu.Item>New Window</Menu.Item>
    </Menubar.Popup>
  </Menubar.Menu>
</Menubar.Root>

API Reference#

Menubar.Root

PropTypeDefault
theme"light" | "dark"

Light or dark glass. Falls back to the nearest GlassThemeProvider, then light.

—
lensPartial<LensProfile>

Overrides for the lens profile, such as thickness, bevel, ior and magnification.

—
liquidnumber

How far the glass squashes and stretches as it moves. 0 keeps it rigid.

—
refraction"interactive" | "always"

When the glass bends the page. interactive bends it while the component is pressed, dragged or focused, always bends it all the time.

"interactive"
childrenReactNode

The content.

—

Also takes every prop of Base UI's menubar, plus className and style.