Edwin Vakayil

Radio Group

Forms

About

Single-select radio option list with an animated shared-layout highlight, spring-animated ring and dot, staggered row entrance, and optional per-option descriptions.

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

"use client";

import * as React from "react";

import RadioGroup from "@/components/ui/radiogroup";

const options = [
  {
    value: "starter",
    label: "Starter",
    description: "For individuals getting started",
  },
  {
    value: "pro",
    label: "Pro",
    description: "For growing teams that need more",
  },
  {
    value: "enterprise",
    label: "Enterprise",
    description: "Advanced controls and support",
  },
];

export default function RadioGroupDemo() {
  const [value, setValue] = React.useState("pro");

  return (
    <div className="flex min-h-[300px] w-full items-center justify-center p-6">
      <RadioGroup
        aria-label="Choose a plan"
        className="w-full max-w-xs"
        options={options}
        value={value}
        onChange={setValue}
      />
    </div>
  );
}

Dependencies

More by Edwin Vakayil

View all
  • Origin Button

    Origin Button

    920
  • Infinite Ribbon

    Infinite Ribbon

    618
  • Shimmer Text

    Shimmer Text

    475
  • Dia Text

    Dia Text

    391
  • Icon Bar

    Icon Bar

    272
  • FAQ Pro

    FAQ Pro

    255
  • Verified Badge

    Verified Badge

    242
  • New Card

    New Card

    208

More in Forms

View all
  • Form

    Form

    10
  • Contact Form

    Contact Form

    33
  • Premium Auth

    Premium Auth

    616
  • Paper Plane

    Paper Plane

    113
  • Contact Card

    Contact Card

    1.1K
  • Form

    Form

    18
  • Onboarding Stepper

    Onboarding Stepper

    14
  • Input

    Input

    14