rokle

Personality

20
40
70
15

Active brand: Meridian

Adjust sliders to see every component on the page respond in real time.

Menubar

Horizontal application menubar with dropdown submenus, following ARIA menubar patterns.

Examples

Basic menubar

Horizontal navigation bar with File, Edit, View, and Help menus.

With active item

Clicking a menu item marks it as the active/open entry.

With disabled item

The View entry is disabled and cannot receive interaction.

Installation

pnpm add @rokle/components @rokle/tokens

Installs with the default Rokle brand. Generate a custom brand on rokle.app to use your own colours and personality.

Usage

import { Menubar } from "@rokle/components";
import { Menubar } from "@rokle/components";

export function Example() {
  return <Menubar />;
}

API Reference

PropTypeDefaultDescription
menusMenubarMenu[]-Top-level menus each containing a label and items array.