Module / v1.0.0-beta.7

@typed/ui/Menubar

10 unique exports available through this public import path, including their members and aliases.

Learn this UI primitive →

import * as Menubar from "@typed/ui/Menubar";

Command focus

  • InitialState

    type-alias

    Initial Menubar values. Uses Composite defaults unless overridden.

  • State

    interface

    The active top-level command and horizontal navigation policy. Child menu visibility belongs to the separate Menu state connected by its submenu trigger.

  • StateSchema

    variable

    Effect Schema used by makeState to encode, decode, and hydrate Menubar state.

  • makeState

    function

    Creates hydrated Menubar state. Uses Composite defaults unless overridden.

Command registration

Menubar surface

  • Menubar

    variable

    Consumer-facing alias of the canonical Menubar component with identical behavior and lifetime.

  • Root

    function

    Renders the persistent menubar root with roving focus, orientation-aware keys, and typeahead.

  • RootOptions

    interface

    Inputs accepted by Menubar.Root in addition to the shared DOM host options.

Top-level commands

  • Item

    function

    Renders a registered menuitem and runs onActivate for native focus or click unless disabled.

  • ItemOptions

    interface

    Inputs accepted by Menubar.Item in addition to the shared DOM host options.