Skip to Content
Navigation & Menus@hacline/ui/menubar

Menubar

Combine multiple action menus into a menubar navigable with arrow keys.

Usage

Focus "File", use the Left and Right arrow keys to switch menus, and press the Down arrow key to open the current menu. Each menu's onAction receives the value of the executed item.

No action selected

Vertical Menubar & Checkbox Items

Set the menubar to vertical orientation to switch menus with the Up and Down arrow keys. Checkbox items inside a menu preserve their own checked state.

Props

Prop

Type

View parts and state attributes in UI SDK.