Skip to content

RadioGroup

<ts-radio-group> vv0.6.3

The ts-radio-group component.

Open in Storybook for interactive demos.

<ts-radio-group orientation="vertical" size="md">Content</ts-radio-group>
PropertyAttributeTypeDefaultDescription
disableddisabledbooleanfalseDisables all child radios.
errorerrorstring | undefinedError message displayed below the group.
labellabelstring | undefinedAccessible label for the group.
namenamestring | undefinedShared name for all child radios.
orientationorientation"horizontal" | "vertical"'vertical'Layout direction of the radios.
sizesize"lg" | "md" | "sm"'md'Size for all child radios.
valuevaluestring | undefinedThe currently selected value.
EventDetailBubblesComposedDescription
tsChange\{ value: string; \}YesYesEmitted when the selected value changes.
NameDescription
*(default)*Radio buttons to group.

Use ::part() to style internal elements:

PartDescription
error-textThe error message wrapper.
groupThe group container.
labelThe group label.
ts-radio-group::part(error-text) {
/* your custom styles */
}
<ts-radio-group orientation="vertical" size="md">Content</ts-radio-group>
import { TsRadioGroup } from '@tessera-ui/react';
<TsRadioGroup orientation="vertical" size="md">Content</TsRadioGroup>