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

SwitchInput

SwitchInput is a sub-component that is used to define the input within the Switch component.

All docs for SwitchInput will use the Switch component as a parent. This is to ensure that the SwitchInput is rendered correctly and is provided the correct context.

Basic Usage

import { Switch, SwitchInput } from '@krakentech/coral'; <Switch> <SwitchInput /> </Switch>

Full API

NameTypeDefault
ariaLabelledBystring

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

Last updated on