Wrapper

The Switch component wrapper.

circle-info

This is a compound component.

API

This component extends the native <div>arrow-up-right API. That's why the className prop is not included in the table.

Props
Type
Required

children

ReactNode

βœ…

labelPosition

top | left

❌

isDisabled

boolean

❌

chevron-rightchildrenhashtag

The children in this case, because it is a compound component, should be the ones provided by this design system.

chevron-rightlabelPositionhashtag

A string that controls the render position of the label if passed as children.

chevron-rightisDisabledhashtag

Disable the component by changing its state.

Last updated