Basic Group

Group radios by name for mutual exclusion.

Selected:

Priority Selection

Choose a priority level for a task or issue.

Shipping Method

Select a delivery option at checkout.

Payment Method

Choose how to pay for an order.

Theme Preference

Application appearance settings.

In a Form

Radios inside a registration form.

Account Type

Usage

plan = ""// Group radios by name<Radio name="plan" value="free" label="Free" bind={plan} /><Radio name="plan" value="pro" label="Pro" bind={plan} /><Radio name="plan" value="enterprise" label="Enterprise" bind={plan} />// Display selected value{if plan != ""}<Badge>{plan}</Badge>{/if}

Props

PropTypeDefaultDescription
nametext"radio"Group name for mutual exclusion
valuetext""Value submitted when selected
labeltext""Display label for the option
bindbinding-Two-way binding for selected value