Home Components Radio Group
React Radio Group Components
13 free React radio groups built with Tailwind CSS and shadcn/ui conventions. Copy the code or install with the shadcn CLI. Great for plan pickers, option cards, and settings.
Radio Group 1 : Notification channel radio list with rounded square radio buttons for email, SMS and push.Radio Group 2 : Billing period radio list with dashed outline radios for monthly, quarterly and yearly plans.Radio Group 3 : Theme picker radio list with sun, moon and desktop icons and radios that fill when selected.Radio Group 4 : Plan selection radio cards with icons, prices and descriptions that tint the whole card when checked.Radio Group 5 : Plan radio list joined into one stacked block, with icons, prices and a Best Seller badge.Radio Group 6 : Two plan radio cards with larger radios, a price beside each label and a description line.Radio Group 7 : Inline pair of radio options, each wrapped in its own bordered and shadowed box.Radio Group 8 : Inline radio options in three sizes, default, medium and large, for comparing radio scale.Radio Group 9 : Inline radios coloured amber, emerald and indigo for warning, positive and neutral states.Radio Group 10 : Plan radio list where the selected row gets a tinted background, with a Popular badge on one plan.Radio Group 11 : Plan cards with the radio dot hidden, so the whole bordered card acts as the selector.Radio Group 12 : Two centred plan tiles side by side, each with an icon, title, description and its own radio.Radio Group 13 : Device picker grid of icon tiles backed by hidden radios, with one option disabled.
About React Radio Group Components A React radio group is a set of options where only one can be selected, like a shipping speed or a plan. Watermelon UI radio groups are built on the Radix UI RadioGroup primitive with Tailwind CSS, so arrow keys move between options and the group exposes the right roles. Add one with the shadcn CLI, then pair each RadioGroupItem with a Label and wire value and onValueChange.
When to use it Choosing a plan, shipping method, or payment option. Survey questions with a few fixed answers. Settings with two to five choices that should all stay visible. When to use something else Use Select when there are many options and they should stay collapsed. Use Checkbox when the user can pick more than one option. Use Switch when there are only two states, on and off. Frequently asked questions How do I set a default value on a shadcn radio group? Pass defaultValue with the value of the item to preselect. To control it, use value and onValueChange instead.
How do I make a horizontal radio group? Change the layout with Tailwind, for example a flex row, and set orientation="horizontal" so arrow key behavior matches. The default layout is a vertical grid.
How do I make radio buttons look like cards? Wrap each RadioGroupItem and its text in a Label styled as a card, and style the checked card with a has-[[data-state=checked]] selector. Clicking anywhere on the card then selects it.
How do I use a radio group with react-hook-form? Render it in a Controller and pass field.value to value and field.onChange to onValueChange. Validate the allowed values with a zod enum.
How to use React Radio Group Components Start from a React project with Tailwind CSS and shadcn/ui set up. Next.js, Vite, Remix, and Astro all work. Run npx shadcn@latest add https://registry.watermelon.sh/r/radio-group-1.json to add the source files to your project. Import it where you need it, then edit the Tailwind classes and design tokens to match your product. Dependencies installed with it: react-icons.
The code is yours: it lives in your repository, so there is no runtime package to keep updated. Watermelon UI is free and open source under the MIT license.
More: Free React components , UI library alternatives , guides .