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.
| Prop | Type | Default | Description |
|---|---|---|---|
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. |
syncSettings | GHLToggleItem[] | GHL_SYNC_SETTINGS | Rows in the "Sync settings" group. Defaults to `GHL_SYNC_SETTINGS`. |
eventTriggers | GHLToggleItem[] | GHL_EVENT_TRIGGERS | Rows in the "Event triggers" group. Defaults to `GHL_EVENT_TRIGGERS`. |
initialSyncToggles | Record<string, boolean> | — | Seeds the sync switches, keyed by item id. |
initialEventToggles | Record<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. |
initialSyncOpen | boolean | false | Renders the "Sync settings" group expanded on mount. |
initialEventsOpen | boolean | false | Renders the "Event triggers" group expanded on mount. |
initialEditing | boolean | false | Renders the header in rename mode on mount. |
autoFocus | boolean | true | Focus the rename field when editing begins. Gallery stories turn this off. |
className | string | — | 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.