Back to components
ElementFormFree

Radio Button React component

An accessible, animated radio group with a springy dot, a ripple on select, focus ring, optional descriptions and a selectable card variant.

About the Radio Button component

Radio Button is an accessible, animated radio group: a springy dot fills the selected option with a ripple, and each option can have a description and be disabled on its own. The card variant turns every option into a selectable card, which suits plan and shipping pickers.

It renders real radio inputs with a shared name inside a radiogroup, so arrow keys move between options and the value is submitted with a regular form.

When to use it

Use Radio Button when people must pick exactly one of a few options and should see them all at once: plans, delivery methods, payment options, survey answers.

With more than five or six options, use Select; for two to four short options switched often, Segmented Control is more compact.

Installation

Add the Radio Button component to your project with the shadcn CLI. It lands in components/radio-button.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/radio-button

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install motion clsx tailwind-merge

More Form components

Select
Free
Animated Checkbox
Free
Slider
Free
Rating Stars
Free
Search Bar
Free
Toggle Pro
Free