Skip to content

SidebarNav ​

Vertical nav list

A site's section list down the side — the pages of a manual, the sections of an official site. On phones it usually moves into a Drawer.

Basic
  • Links go through your router when one is provided; active marks the current page (aria-current="page"); external keeps a link a plain <a>.
  • meta adds a dated line after a dash; badge: true shows NEW!.

Usage ​

ts
import { BlessSidebarNav } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
items*BlessNavItem[]—
activestring—
labelstring"Main"

Events

NamePayloadDescription
select[item: BlessNavItem, event: MouseEvent]

Slots

NameScopeDescription
item{ item: BlessNavItem; }

Released under the MIT License. Character names and artwork belong to their owners.