SubComponents
Control
The control subcomponent is required to render the Control
of the Switch component. Because of this, this component extends the native input[type='checkbox']
component props. Because of this, you can use all of the native props. This is a required children.
Control API
Props
Type
Required
defaultChecked
boolean
❌
checked
boolean
❌
isDisabled
boolean
❌
HelpText
The HelpText subcomponent extends the SDS HelpText component. See for reference: HelpText
Label
The Label subcomponent extends the SDS label component. See for reference: Label
Last updated