TidalUI

Menubar preview

A keyboard-navigable application menubar with native actions and links, selection items, and themed portalled menus.

pro · Navigation · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/menubar

Import components/ui/tidal.css, components/ui/menubar.css. Wrap installed components in tidal-scope.

Preview

Menubar component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/menubar.css";
import{TidalMenubar}from"./components/ui/menubar";
export default()=><div className="tidal-scope"><TidalMenubar/></div>;

API and props

TidalMenubar.theme
MenubarTheme | undefined

Optional theme value accepted by this exported component.

TidalMenubarContent.portalContainer
HTMLElement | null | undefined

Optional portal container value accepted by this exported component.

TidalMenubarItem.destructive
boolean | undefined

Optional destructive value accepted by this exported component.

TidalMenubarLinkItem.anchorProps (required)
Omit<Omit<DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref">, "children"> & { href: string; }

Required anchor props value accepted by this exported component.

TidalMenubarLinkItem.children (required)
ReactNode

Required children value accepted by this exported component.

TidalMenubarLinkItem.destructive
boolean | undefined

Optional destructive value accepted by this exported component.

TidalMenubarLinkItem.onClick
undefined

Callback invoked when the click interaction is proposed.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas