The id of the form the switch belongs to, when it sits outside it (its form attribute).
submitOnChange
boolean
Send the switch's form as soon as it is flipped: the setting takes effect at once, as a switch should. Without script a Save button for that form stands in.
saveLabel
string
disabledReason
ReactNode
Why it cannot be changed here ("Only the account owner can change this."): the switch is disabled and described by these words, never dimmed with no reason.
SettingsLayout
Prop
Type
Required
Does
title
ReactNode
Yes
lead
ReactNode
crumbs
BreadcrumbItem[]
renderLink
BreadcrumbProps["renderLink"]
back
{ href: string; label: string } | null
The settings index; null for none.
actions
ReactNode
children
ReactNode
Parts and data attributes
Class
Is
.cap-settings-back
its own class
.cap-settings-page
its own class
.cap-settings-row
the root
.cap-settings-row-control
a part
.cap-settings-row-help
a part
.cap-settings-row-label
a part
.cap-settings-row-reason
a part
.cap-settings-row-text
a part
Attribute
Values
data-fill
present or absent
data-flip
present or absent
State
Read from
:hover
the platform
Accessibility
The control's own; the back link is a link.
A switch is Capsomer's switch (a checkbox with role="switch"). The page head holds the one h1.