Application shell
Creator top bar
The sticky header for creator views, showing the active space name, an admin mode toggle, and a slot for page-specific actions and a refresh control.
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.
Creator 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.
| Prop | Type | Default | Description |
|---|---|---|---|
showAdminToggle | boolean | true | Undocumented — add TSDoc to the prop in the library. |
isAdminMode | boolean | true | Undocumented — 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. |
actions | ReactNode | — | Undocumented — add TSDoc to the prop in the library. |
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/CreatorTopBar.tsx- Portability
- Copies across unchanged — only the utils import path moves.
- Notes
- Use at the top of creator dashboard pages that need quick context on the current space and a way to switch between admin and member views. The mobile menu trigger, admin toggle, refresh button, and actions slot are all optional and only render when their corresponding handler is supplied.