Radio Group
Single-choice list with springy scaling dots, plus a card variant with title, description and trailing meta.
About Radio Group
Single-choice list with springy scaling dots, plus a card variant with title, description and trailing meta.
Radio Group is a free primitive component for React, built on shadcn/ui and Tailwind CSS. It ships as 74 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.
- radio
- radio group
- choice
- form
- card
Installation
- Add the Chocolate UI registry to your
components.json(see the installation guide). - Run the shadcn CLI:
npx shadcn@latest add @chocolate/radio-groupDependencies installed automatically: radix-ui.
Uses: utils.
Usage
import RadioGroup from "@/components/ui/radio-group"
export default function Page() {
return <RadioGroup />
}