About
An accessible radio button group for selecting one option from a set, styled with Tailwind CSS on top of React Aria Components.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Radio Group to your project and fits it to your theme.
Code
How Radio Group is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { RadioGroup, Radio } from "@/components/ui/tailwind-radiogroup";
export default function RadioGroupDemo() {
return (
<RadioGroup
label="Favorite pet"
defaultValue="cats"
description="Choose the pet you like the most."
>
<Radio value="dogs">Dogs</Radio>
<Radio value="cats">Cats</Radio>
<Radio value="dragons">Dragons</Radio>
</RadioGroup>
);
}
















