AsterUIDocsv1.0.2

Docs / Component reference

Navbar

Place the site's main destinations alongside its name. At a narrow width the links move into the menu.

Navbar example

Install

sh
npx @fierst/ui@1.0.2 add navbar

Registry dependencies: theme, icon, sheet. Package dependencies: @lucide/icons.

Exports from ./ui/navbar: NavbarLink, Navbar.

Download the registry source for navbar 1.0.2.

API contracts

ts
export interface NavbarLink {
  label: string;
  href: string;
  active?: boolean;
}

export function* Navbar(
  props: {
    brand: View;
    links: readonly NavbarLink[];
    actions?: View;
    class?: string;
  },
  ctx: Ctx,
)