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

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

NameTypeDefault
labelReactNode

The label to display for the toggle button.

Last updated on