ToggleButtonLabel
ToggleButtonLabel is a sub-component of the ToggleButton component. It is used to define a label for the ToggleButton component.
All docs for ToggleButtonLabel will use the ToggleButton component as a parent. This is to ensure that the ToggleButtonLabel is rendered correctly.
Basic Usage
import { ToggleButton, ToggleButtonLabel } from '@krakentech/coral';
<ToggleButton>
<ToggleButtonLabel label="Custom label" />
</ToggleButton>Full API
| Name | Type | Default |
|---|---|---|
label | ReactNodeThe label to display for the toggle button. |
Last updated on