SwitchLabel
SwitchLabel is a sub-component that is used to define the label within the Switch component.
All docs for SwitchLabel will use the Switch component as a parent. This is to ensure that the SwitchLabel is rendered correctly and is provided the correct context.
Basic Usage
import { Switch, SwitchLabel } from '@krakentech/coral';
<Switch>
<SwitchLabel label="Label" />
</Switch>Properties
Optional
<Switch>
<SwitchLabel label="Label" optional />
</Switch>Full API
| Name | Type | Default |
|---|---|---|
ariaLabelledBy | stringThe ID of the element containing the description for the switch. |
Last updated on