Skip to content

Settings

Ghlaccount card

A card for one connected GoHighLevel account, showing a renameable label above two collapsible switch groups for data sync settings and member event triggers.
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.

Ghlaccount card

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
id*string—Stable id of the connected GHL account. Passed back on rename and delete.
label*string—Operator-chosen name for the connection, e.g. "Greenroom HQ — main".
onRename(id: string, newLabel: string) => void—Undocumented — add TSDoc to the prop in the library.
onRequestDelete(id: string, label: string) => void—Undocumented — add TSDoc to the prop in the library.
syncSettingsGHLToggleItem[]GHL_SYNC_SETTINGSRows in the "Sync settings" group. Defaults to `GHL_SYNC_SETTINGS`.
eventTriggersGHLToggleItem[]GHL_EVENT_TRIGGERSRows in the "Event triggers" group. Defaults to `GHL_EVENT_TRIGGERS`.
initialSyncTogglesRecord<string, boolean>—Seeds the sync switches, keyed by item id.
initialEventTogglesRecord<string, boolean>—Seeds the event switches, keyed by item id.
onSyncToggle(id: string, checked: boolean) => void—Undocumented — add TSDoc to the prop in the library.
onEventToggle(id: string, checked: boolean) => void—Undocumented — add TSDoc to the prop in the library.
initialSyncOpenbooleanfalseRenders the "Sync settings" group expanded on mount.
initialEventsOpenbooleanfalseRenders the "Event triggers" group expanded on mount.
initialEditingbooleanfalseRenders the header in rename mode on mount.
autoFocusbooleantrueFocus the rename field when editing begins. Gallery stories turn this off.
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/ghl/GHLAccountCard.tsx
Portability
Copies across unchanged — only the utils import path moves.
Notes
Use it to list each linked GoHighLevel connection under Settings > Apps > GoHighLevel, letting an operator rename or remove the account and control which data and lifecycle events sync. Toggle state is internal but seedable, and the collapsible groups mount their rows only when expanded.