Blokd UIDocsv1.1.0

Docs / Component reference

Site Menu

Keep a short set of destinations within reach on a small screen. Place the trigger beside the site title in a flex header. Give each menu its own popover ID and mark the current destination with current. The first preview uses sample destinations. The second uses the documentation site’s book button and chapter picker.

Mobile main navigation

Mobile documentation menu

Try the field guide at phone width. Browse chapters or search, then scroll the page to reach the floating book button.

Install

sh
npx @fierst/blokd-ui@1.1.0 add site-menu

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

Exports from ./ui/site-menu: SiteMenu.

Download the registry source for site-menu 1.1.0.

API contracts

ts
export function SiteMenu({
  id,
  label = 'Site menu',
  links,
}: {
  id: string;
  label?: string;
  links: readonly { href: string; label: string; icon?: LucideIconInput; current?: boolean }[];
})