Intent UI

Radio Group

Forms

About

An accessible radio group built on React Aria with label, description and validation support for choosing a single option from a list.

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 { Description, Label } from "@/components/ui/field";
import { Radio, RadioField, RadioGroup } from "@/components/ui/radio";

export default function RadioGroupDemo() {
  return (
    <div className="w-full max-w-sm">
      <RadioGroup name="billing" defaultValue="monthly">
        <Label>Billing Cycle</Label>
        <Description>Select how often you'd like to be billed</Description>

        <RadioField value="monthly">
          <Radio>Monthly</Radio>
          <Description>Billed every month</Description>
        </RadioField>
        <RadioField value="quarterly">
          <Radio>Quarterly</Radio>
          <Description>Billed every 3 months</Description>
        </RadioField>
        <RadioField value="yearly">
          <Radio>Yearly</Radio>
          <Description>Billed once per year with a discount</Description>
        </RadioField>
      </RadioGroup>
    </div>
  );
}

Dependencies

More by Intent UI

View all
  • Radar Chart

    Radar Chart

    217
  • Radial Chart

    Radial Chart

    77
  • Bar Chart

    Bar Chart

    44
  • Pie Chart

    Pie Chart

    31
  • Toggle Group

    Toggle Group

    26
  • Loader

    Loader

    23
  • Progress Bar

    Progress Bar

    19
  • Color Slider

    Color Slider

    13

More in Forms

View all
  • Premium Auth

    Premium Auth

    500
  • Login 1

    Login 1

    52
  • Book A Demo 3

    Book A Demo 3

    83
  • Authentication Card

    Authentication Card

    47
  • Book A Demo 1

    Book A Demo 1

    69
  • Contact Card

    Contact Card

    1K
  • Login Card

    Login Card

    32
  • Login 2

    Login 2

    7