Skip to content

SwitchOption

<ts-switch-option> vv0.4.0

The ts-switch-option component.

Open in Storybook for interactive demos.

<ts-switch-option>Content</ts-switch-option>
PropertyAttributeTypeDefaultDescription
activeactivebooleanfalseWhether this option is the active selection (set by parent).
disableddisabledbooleanfalseDisables this option.
iconiconstring | undefinedOptional icon name.
valuevaluestring | undefinedUnique identifier for this option.
NameDescription
*(default)*Default slot for label text.

Use ::part() to style internal elements:

PartDescription
baseThe option container.
iconThe icon wrapper.
ts-switch-option::part(base) {
/* your custom styles */
}
<ts-switch-option>Content</ts-switch-option>
import { TsSwitchOption } from '@tessera-ui/react';
<TsSwitchOption>Content</TsSwitchOption>