Loading component…
Loading component…
Settings card for a connected service – on/off switch, API key, validated site address, time zone and a save bar
To reuse this local React demo, copy all files from the Code tab into the same folder, then import IntegrationSettings from ./integration-settings.
import { IntegrationSettings } from "@/components/ui/integration-settings";
export function Store() {
return (
<IntegrationSettings
name="Shopify store"
logo={<ShopifyLogo />}
count={128}
meta="Connected on March 4, 2026"
defaultValues={{ siteUrl: "lumen-studio.com", timeZone: "(GMT +01:00) Berlin" }}
onGenerateKey={() => api.createKey()}
onSave={(values) => api.saveSettings(values)}
/>
);
}| Name | Type | Default | Description |
|---|---|---|---|
| name | string | Name of the service | |
| logo | ReactNode | Logo in the white tile | |
| count | number | Small number next to the name | |
| meta | string | Line under the name; switching off shows a paused note instead | |
| defaultValues | Partial<IntegrationValues> | enabled, siteUrl, timeZone and apiKey to start with | |
| siteHint | string | Helper text under the address field | |
| timeZones | string[] | Choices in the time zone picker | |
| onGenerateKey | () => string \| Promise<string> | Creates a key – a random demo key without it | |
| onSave | (values) => void \| Promise<void> | Called with all values from the save bar | |
| onToggle | (enabled: boolean) => void | Called when the switch changes |
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"