Skip to content

Settings

Analytics pane header

The top bar of an analytics integration pane: a back button, the platform's logo in a tinted chip, its name, and an optional live-connection dot.
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.

Analytics pane header

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
platformName*React.ReactNode—Platform name shown beside the mark.
onBack() => void—Returns to the integrations list. Rendered as a `BackButton`.
logoSrcstringPLACEHOLDER_PLATFORM_LOGOLogo image source. Defaults to {@link PLACEHOLDER_PLATFORM_LOGO}. Never remote.
logoAltstring—Undocumented — add TSDoc to the prop in the library.
logoClassNamestring"w-3.5 h-3.5"Mark sizing inside the 28px chip — `w-3.5 h-3.5` for most, `w-5 h-5` for GA4's fuller square.
logoReact.ReactNode—A rendered mark (inline SVG) instead of an image — wins over `logoSrc`.
showStatusbooleanfalseShows the green dot + status text.
statusLabelReact.ReactNode"1 account linked"Status wording. The ad platforms say "1 account linked"; GA4 says "Connected".
classNamestring—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/settings/analytics/AnalyticsPaneHeader.tsx
Portability
Copies across unchanged — only the utils import path moves.
Notes
Render it as the first child of an analytics pane that uses `p-0 md:p-6` padding, since its border relies on negative margins to reach the pane edge on desktop. Pass showStatus and a statusLabel to reflect connection state, since the wording differs between ad platforms ("1 account linked") and property-based integrations like GA4 ("Connected").