The Switch component wrapper.
This is a compound component.
This component extends the native <div>arrow-up-right API. That's why the className prop is not included in the table.
children
ReactNode
β
labelPosition
top | left
β
isDisabled
boolean
The children in this case, because it is a compound component, should be the ones provided by this design system.
A string that controls the render position of the label if passed as children.
Disable the component by changing its state.
Last updated 2 years ago