Skip to Content
🎉 Coral x Panda has been released 🎉 Read the Migration Guide

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

NameTypeDefault
ariaLabelledBystring

The ID of the element containing the description for the switch.

Last updated on