Since 1.0.0BETA

Radio

`TxRadioGroup` + `TxRadio`****+********

This page was migrated by AI, please review carefully

Migration is complete, but please validate against source code and manual review.

Radio

TxRadioGroup + TxRadio****+********

Standard Single-Select

Standard single-select with a dot + label, good for many options.

Radio (standard)

Interactive preview paused.

Card Single-Select Style

Single-select emphasizing hierarchy, good for explanatory text.

Radio (card)

Interactive preview paused.

Button Group Style

Compact button group, good for few options.

Radio (simple)

Interactive preview paused.

Indicator Animation

Button group animation with indicator: default → normal → blur → glass.

Radio (indicator)

Interactive preview paused.

Disabled State

Radio (disabled)

Interactive preview paused.

Playground

A control panel for TxRadioGroup props to quickly validate variants/params.

RadioGroup (playground)

Interactive preview paused.

API

TxRadioGroup

Props

PropDescriptionTypeDefault
modelValue / v-modelSelected radio value.string | number-
disabledDisables all radios in the group and blocks keyboard selection.booleanfalse
typeVisual style shared by child radios.'button' | 'standard' | 'card''button'
directionLayout direction. button always resolves to row, standard defaults to row, and card defaults to column.'row' | 'column'-
indicatorVariantButton-group indicator style. When omitted, glass maps to glass, blur maps to blur, otherwise solid is used.'solid' | 'outline' | 'glass' | 'blur'-
glassShortcut for the glass button indicator variant.booleanfalse
blurShortcut for the blur button indicator variant.booleanfalse
updateOnSettledFor button groups, delays v-model/change emission until the animated indicator settles. Defaults to enabled for glass or blur indicators.boolean-
stiffnessSpring stiffness for button indicator motion. Higher values settle faster.number110
dampingSpring damping for button indicator motion. Lower values feel more elastic.number12
blurAmountBackdrop blur strength for the blur indicator.number1
elasticEnables stretch/impact motion on the button indicator.booleantrue

Events

EventDescriptionParams
update:modelValuev-model update emitted when an enabled child radio selects a new value.(value: string | number) => void
changeEmitted with the selected value after an enabled selection.(value: string | number) => void

Keyboard

KeyBehavior
ArrowRight / ArrowDownSelect the next enabled radio.
ArrowLeft / ArrowUpSelect the previous enabled radio.
Home / EndSelect the first / last enabled radio.

TxRadio

Props

PropDescriptionTypeDefault
valueValue written to the parent TxRadioGroup when selected.string | number-
labelFallback visible label when no default slot is provided.string''
disabledDisables this radio and removes it from group keyboard navigation.booleanfalse
typeStandalone visual style when the radio is not controlled by a group; grouped radios inherit the group type.'button' | 'standard' | 'card''button'

Events

EventDescriptionParams
clickEmitted after an enabled, unchecked radio selects itself through the parent group.(value: string | number) => void