About
A fieldset-based radio button group for selecting exactly one option from a list, with native arrow-key roving between choices.
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, RadioGroupItem } from "@/components/ui/radio-group";
export default function RadioGroupDemo() {
return (
<div className="flex w-full max-w-sm items-center justify-center p-8">
<RadioGroup label="Notify me about" defaultValue="all">
<RadioGroupItem value="all">All new messages</RadioGroupItem>
<RadioGroupItem value="mentions">Mentions only</RadioGroupItem>
<RadioGroupItem value="none">Nothing</RadioGroupItem>
</RadioGroup>
</div>
);
}















