py_ets

Radio Group

Forms

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

Dependencies

More by py_ets

View all
  • Alert Dialog

    Alert Dialog

    16
  • Progress Bar

    Progress Bar

    11
  • Command Palette

    Command Palette

    10
  • React Aria CheckboxGroup

    React Aria CheckboxGroup

    10
  • Segmented Control

    Segmented Control

    8
  • React Aria DatePicker

    React Aria DatePicker

    8
  • React Aria GridList

    React Aria GridList

    7
  • React Aria Switch

    React Aria Switch

    7

More in Forms

View all
  • Premium Auth

    Premium Auth

    593
  • Contact Form

    Contact Form

    28
  • Form

    Form

    4
  • Login 1

    Login 1

    70
  • Book A Demo 1

    Book A Demo 1

    94
  • Contact Card

    Contact Card

    1.1K
  • HeroUI Field Error

    HeroUI Field Error

    13
  • Form [react-aria-components]

    Form [react-aria-components]

    19