Components
Layouts

Radio

Select one option from a set of mutually exclusive choices. Perfect for single-choice questions and settings.

Select your payment method
Credit Card
Paypal
Bank transfer

With descriptions

Align descriptions for each radio directly below its label.

Role
Administrator Administrator users can perform any action.
Editor Editor users have the ability to read, create, and update.
Viewer Viewer users only have the ability to read. Create, and update are restricted.

Within fieldset

Group radio inputs inside a fieldset and provide more context with descriptions for each radio option.

Role
Administrator Administrator users can perform any action.
Editor Editor users have the ability to read, create, and update.
Viewer Viewer users only have the ability to read. Create, and update are restricted.

Segmented

A more compact alternative to standard radio buttons.

Role Admin Editor Viewer

You can also use the size="sm" prop to make the radios smaller.

Role Admin Editor Viewer

Segmented with icons

Combine segmented radio buttons with icon prefixes.

Role Admin Editor Viewer

Radio cards

A bordered alternative to standard radio buttons.

Shipping
Standard
4-10 business days
Fast
2-5 business days
Next day
1 business day

You can swap between vertical and horizontal card layouts by conditionally applying flex-col based on the viewport.

Vertical cards

You can arrange a set of radio cards vertically by simply adding the flex-col class to the group container.

Shipping
Standard
4-10 business days
Fast
2-5 business days
Next day
1 business day

Cards with icons

You can arrange a set of radio cards vertically by simply adding the flex-col class to the group container.

Shipping
Standard
4-10 business days
Fast
2-5 business days
Next day
1 business day

Cards without indicators

For a cleaner look, you can remove the radio indicator using :indicator="false".

Shipping
Standard
4-10 business days
Fast
2-5 business days
Next day
1 business day

Custom card content

You can compose your own custom cards through the flux:radio component slot.

Shipping
Standard
4-10 business days
Fast
2-5 business days
Next day
1 business day
Copyright © 2024 Wireable LLC ·Terms of Service
Built with by
Caleb Porzio and Hugo Sainte-Marie