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

    223
  • Radial Chart

    Radial Chart

    80
  • Bar Chart

    Bar Chart

    44
  • Pie Chart

    Pie Chart

    31
  • Toggle Group

    Toggle Group

    27
  • Loader

    Loader

    23
  • Progress Bar

    Progress Bar

    19
  • Color Slider

    Color Slider

    14

More in Forms

View all
  • Premium Auth

    Premium Auth

    519
  • Contact Card

    Contact Card

    1K
  • Form

    Form

    16
  • Authentication Card

    Authentication Card

    49
  • Book A Demo 1

    Book A Demo 1

    72
  • Book A Demo 4

    Book A Demo 4

    55
  • Login Form

    Login Form

    7
  • Login Card

    Login Card

    26