Preet Suthar

Radio

Forms 14

About

A customizable radio group component with smooth animations and flexible layouts

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

Code

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

Usage.tsx

import { RadioGroup, RadioItem } from "@/components/ui/radio";

export default function DemoOne() {
  return(
    <>
      <div className="max-w-sm w-full mx-auto flex items-center justify-center">
        <RadioGroup
          defaultValue="comfortable"
          label="Select your comfort level"
          description="Choose the option that best fits your needs"
        >
          <RadioItem
            value="comfortable"
            label="Comfortable"
            description="A relaxed and easy-going approach"
          />
          <RadioItem
            value="compact"
            label="Compact"
            description="Minimal space with essential features"
          />
          <RadioItem
            value="spacious"
            label="Spacious"
            description="Plenty of room with all amenities"
          />
        </RadioGroup>
      </div>
    </>
  );
}

Dependencies

More by Preet Suthar

View all
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.8K
  • Shining Text

    Shining Text

    1.7K
  • Magic Text

    Magic Text

    919
  • Toolbar

    Toolbar

    868
  • Hero 2

    Hero 2

    864
  • Typewriter Text

    Typewriter Text

    820
  • AI Chat Input

    AI Chat Input

    792
  • Full Screen Signup

    Full Screen Signup

    776

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