Tailwind CSS Radio
Build Tailwind CSS radio buttons with inline and vertical groups, descriptions, cards, list groups, right-aligned controls, disabled, and validation states.
Heads up!
By default Preline UI uses Tailwind CSS Forms plugin. Don't forget to install it!
Default radio
Use a standard radio input when users should choose exactly one option from a set.
Inline radio group
Display related radio options inline when the set is short and fits comfortably on one row.
Vertical radio group
Stack radio options vertically when labels are longer or you need a clearer scan path.
Radios with descriptions
Add supporting text under each radio option to explain the impact of a single-choice selection.
Radio cards
Wrap radio inputs inside bordered cards to create larger selection targets in a grid layout.
Vertical radio cards
Use vertically stacked radio cards when each option needs more space in a narrow layout.
Right-aligned radio
Move the radio control to the right when the label content should lead visually.
Radio list group
Combine radios with list group items to build single-select lists with consistent borders and spacing.
Horizontal radio list group
Use the same list group pattern in a horizontal layout for compact single-select rows.
Validation states
Show valid and invalid states to give clear feedback when a radio selection is required in a form.