Skip to content

Application shell

Sidebar managed nav item

SidebarManagedNavItem — exported from the library at `src/components/layout/sidebar/SidebarManagedNavItem.tsx`. Awaiting a written description.
Available
Ports as-is

Examples

Rendered live from the maintained Storybook story. Lantern stores only the story id and embeds Storybook rather than duplicating the component or its demo.

Sidebar managed nav item

Rendered live from Storybook

Storybook must be running for this to load — bun run start:storybook from the monorepo root, or set NEXT_PUBLIC_STORYBOOK_URL to a deployed instance.

Props

The component's public API, read from its TypeScript source. Descriptions come from TSDoc on the prop, so this table cannot drift from the component.

PropTypeDefaultDescription
iconReact.ReactNode—15x15 leading glyph. Any node — a lucide icon, a BTS icon, or a `#` span.
label*string—Undocumented — add TSDoc to the prop in the library.
hrefstring"#"Destination. Rendered on a plain anchor — the design system has no router. Defaults to `"#"` so the item is renderable without one.
badgenumber—Unread count. Rendered only when `> 0`, unmuted, and not hidden.
isActiveboolean—Applies the `.active` treatment (raised fill, full-strength foreground).
isMutedboolean—Swaps the badge for a bell-off glyph. Muted wins over `badge`.
shortcutstring—Keyboard hint, revealed on hover. Suppressed when `menu` is present.
menuSidebarManagedNavItemMenu—Presence of this object is what makes the row "managed".
onSelect(event: React.MouseEvent<HTMLAnchorElement>) => void—Called on click. Receives the event so a host app can `preventDefault()` and hand the navigation to its own router.
onCopyUrl() => void—Called when "Copy URL" is chosen. Defaults to copying `window.location.href`.

Reference

Transcribed from the component audit. If this disagrees with the source, the source is right.

Source
src/components/layout/sidebar/SidebarManagedNavItem.tsx
Portability
Copies across unchanged — only the utils import path moves.
Variants
type: page | channel