Skip to content
Settings row, light
Light
Settings row, dark
Dark

Every state

  • Settings row, default, light
    Settings row, default, dark

    default

  • Settings row, list, light
    Settings row, list, dark

    list

  • Settings row, hover, light
    Settings row, hover, dark

    hover

  • Settings row, focus, light
    Settings row, focus, dark

    focus

  • Settings row, saving, light
    Settings row, saving, dark

    saving

  • Settings row, saved, light
    Settings row, saved, dark

    saved

  • Settings row, error, light
    Settings row, error, dark

    error

  • Settings row, disabled, light
    Settings row, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"setting-reminders"Id for the switch; the label, description and status hang off it.
labelstring"Payment reminders"Visible label.
descriptionstring"Email the customer three days before an invoice is due, and again on the day."What the setting does, under the label.
defaultCheckedbooleantrueSwitched on at the start.
save(checked: boolean) => Promise<void>saveLocallySaves 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.
savingLabelstring"Saving…"Saving label.
savedLabelstring"Saved"Saved label.
errorTextstring"Couldn’t save this change. Check your connection and try again."Said under the description when saving failed.
disabledboolean–Disables it.
classNamestring–Extra classes on the outer element.

More list rows

All 8
list-row-06 is in UI ProGet UI Pro, €199

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans