Skip to content

Application shell

Top bar

The primary header for authenticated app views, showing the current brand or page title alongside member avatars, an admin-mode toggle, and quick actions.
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.

Top bar

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
titlestring—Undocumented — add TSDoc to the prop in the library.
brand{ name: string; initials?: string; }—Undocumented — add TSDoc to the prop in the library.
showAdminTogglebooleantrueUndocumented — add TSDoc to the prop in the library.
isAdminModebooleantrueUndocumented — add TSDoc to the prop in the library.
onToggleAdminMode() => void—Undocumented — add TSDoc to the prop in the library.
onRefresh() => void—Undocumented — add TSDoc to the prop in the library.
actionsReactNode—Undocumented — add TSDoc to the prop in the library.
memberCountLabelstring—Undocumented — add TSDoc to the prop in the library.
membersTopBarMember[][]Members to preview. Storybook supplies fixtures; app consumers can omit them.
onMenuToggle() => void—Undocumented — add TSDoc to the prop in the library.

Reference

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

Source
src/components/layout/TopBar.tsx
Portability
Copies across unchanged — only the utils import path moves.
Notes
Place at the top of an admin or app shell where members need at-a-glance access to admin mode, refresh, and overflow actions. Supply a brand object or a title, not both, and pass onMenuToggle to render the sidebar trigger.