Skip to content

Settings

Settings ghlmanage

The GoHighLevel integration settings screen, switching between a connect pitch and a connected panel with a sync-events accordion and a disconnect danger zone.
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.

Settings ghlmanage

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
onBack*() => void—Leaves the screen.
appNamestring"GoHighLevel"Integration name in the header.
appIconstring"🔗"Header glyph. A string longer than two characters is treated as an image src (pass a data URI); anything shorter renders as an emoji/monogram.
connectedboolean—Whether the integration is connected. Drives the entire body.
initialConnectedbooleanfalseUncontrolled starting connection state.
onConnect(apiKey: string) => void—Fired when the connect modal returns a key, and by "Edit key".
onDisconnect() => void—Fired by "Disconnect" in the kebab menu and in the danger zone.
maskedApiKeystring""Already-masked key shown on the connected panel. Never a live secret.
eventsGhlSyncEvent[]GHL_SYNC_EVENTSSync events offered. Defaults to `GHL_SYNC_EVENTS`.
initialEnabledIdsstring[]—Which event ids are on. Defaults to all of them.
defaultExpandedbooleanfalseExpands the sync-events accordion on mount.
defaultConnectOpenbooleanfalseOpens the connect modal on mount.
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/SettingsGHLManage.tsx
Portability
Copies across unchanged — only the utils import path moves.
Notes
Use for managing the GoHighLevel connection: the accordion header carries a master switch that both summarizes and toggles all sync events at once, independent of the chevron that expands or collapses the list. It never renders a live API key, only an already-masked string passed in as a prop.