

Every state


default


hover


focus


connecting


connected


error


many


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| name | string | "Ledgerly" | The app's name ("Ledgerly"). |
| description | string | "Send paid invoices to your bookkeeping every night." | One line on what connecting does. |
| mark | ListRowIntegrationMark | { initials: "Lb", tint: 2 } | Mark. |
| defaultStatus | ListRowIntegrationStatus | "off" | The state it starts in. |
| connect | () => Promise<boolean> | () => new Promise((r) => setTimeout(() => r(true), 1200)) | Connects the app; resolve true when it worked. Default: a short local wait that succeeds. |
| onChange | (status: ListRowIntegrationStatus) => void | – | Called with the new status after every change. |
| statusLabels | { off: string | null; connecting: string; connected: string; error: string } | { off: null, connecting: "Connecting…", connected: "Connected", error: "Not connected" } | Words for each status, shown next to the switch ("Connected"). "off" null: nothing is shown when off. |
| errorMessage | string | "Couldn't reach Ledgerly. Turn it on to try again." | Line shown in place of the description when connecting failed. |
| switchLabel | string | "Connect {name}" | Accessible name of the switch; "{name}" becomes the app's name. |
| disabled | boolean | false | Disables it. |
| className | string | – | Extra classes on the outer element. |
More list rows
All 8list-row-04 is in UI ProGet UI Pro, €199


