Skip to content

Radio

<ts-radio> vv0.4.0

The ts-radio component.

Open in Storybook for interactive demos.

<ts-radio size="md">Content</ts-radio>
PropertyAttributeTypeDefaultDescription
checkedcheckedbooleanfalseWhether the radio is checked.
disableddisabledbooleanfalseRenders the radio as disabled.
labellabelstring | undefinedLabel text. If omitted, use the default slot.
namenamestring | undefinedName attribute for form submission.
sizesize"lg" | "md" | "sm"'md'The radio size.
valuevaluestring''The value associated with this radio.
EventDetailBubblesComposedDescription
tsChangeTsCheckboxChangeEventDetailYesYesEmitted when the radio is selected.
MethodSignatureDescription
selectselect() => Promise<void>Programmatically select the radio.
NameDescription
*(default)*Default slot for the radio label.

Use ::part() to style internal elements:

PartDescription
baseThe radio container.
controlThe visual radio circle.
labelThe label wrapper.
ts-radio::part(base) {
/* your custom styles */
}
<ts-radio size="md">Content</ts-radio>
import { TsRadio } from '@tessera-ui/react';
<TsRadio size="md">Content</TsRadio>