properui

Radio Buttons

Forms

About

A group of radio buttons for choosing exactly one option from a small, always-visible set of mutually exclusive choices, with optional label and hint text.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Radio Buttons to your project and fits it to your theme.

Code

How Radio Buttons is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { RadioButton, RadioGroup } from "@/components/ui/radio-buttons";

export default function SizesDemo() {
  return (
    <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
      <RadioGroup aria-label="Pricing plans" defaultValue="basic">
        <RadioButton
          label="Basic plan"
          hint="Up to 10 users and 20 GB data."
          value="basic"
        />
        <RadioButton
          label="Business plan"
          hint="Up to 20 users and 40 GB data."
          value="business"
        />
        <RadioButton
          label="Enterprise plan"
          hint="Unlimited users and unlimited data."
          value="enterprise"
        />
      </RadioGroup>
      <RadioGroup aria-label="Pricing plans" defaultValue="basic" size="md">
        <RadioButton
          label="Basic plan"
          hint="Up to 10 users and 20 GB data."
          value="basic"
        />
        <RadioButton
          label="Business plan"
          hint="Up to 20 users and 40 GB data."
          value="business"
        />
        <RadioButton
          label="Enterprise plan"
          hint="Unlimited users and unlimited data."
          value="enterprise"
        />
      </RadioGroup>
    </div>
  );
}

Dependencies

More by properui

View all
  • Command Menu

    Command Menu

    13
  • Loading Indicator

    Loading Indicator

    7
  • Breadcrumbs

    Breadcrumbs

  • Toggle

    Toggle

  • Tags

    Tags

  • Progress Indicators

    Progress Indicators

  • Button

    Button

  • Badge

    Badge

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
  • Contact Card

    Contact Card

    1K
  • Login Card

    Login Card

    32
  • Book A Demo 1

    Book A Demo 1

    69
  • Login 2

    Login 2

    7