kemiljk

Radio Group

Forms

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>
  );
}

More by kemiljk

View all
  • Switch

    Switch

    7
  • Color Picker

    Color Picker

    1
  • Combobox

    Combobox

  • Progress

    Progress

  • Navigation Menu

    Navigation Menu

  • Toggle

    Toggle

  • Avatar

    Avatar

  • Checkbox

    Checkbox

More in Forms

View all
  • Form

    Form

    18
  • Premium Auth

    Premium Auth

    570
  • Login 1

    Login 1

    63
  • Contact Card

    Contact Card

    1.1K
  • Book A Demo 1

    Book A Demo 1

    91
  • Card Studio

    Card Studio

    47
  • Authentication Card

    Authentication Card

    52
  • Book A Demo 3

    Book A Demo 3

    102