

Every state


default


list


hover


focus


saving


saved


error


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "setting-reminders" | Id for the switch; the label, description and status hang off it. |
| label | string | "Payment reminders" | Visible label. |
| description | string | "Email the customer three days before an invoice is due, and again on the day." | What the setting does, under the label. |
| defaultChecked | boolean | true | Switched on at the start. |
| save | (checked: boolean) => Promise<void> | saveLocally | Saves the new value; reject (or throw) when it failed. Default: a short local wait that succeeds. |
| onChange | (checked: boolean) => void | – | Called with the new value once it is saved. |
| savingLabel | string | "Saving…" | Saving label. |
| savedLabel | string | "Saved" | Saved label. |
| errorText | string | "Couldn’t save this change. Check your connection and try again." | Said under the description when saving failed. |
| disabled | boolean | – | Disables it. |
| className | string | – | Extra classes on the outer element. |
More list rows
All 8list-row-06 is in UI ProGet UI Pro, €199


