kuratlielia

Radio Group

Forms

About

A radio button group for choosing one option from a visible set, with a shared highlight that glides to the selected row instead of restyling each option.

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 RadioGroup from "@/components/ui/radio-group";
import { useState } from "react";

export default function RadioGroupDemo() {
  const [plan, setPlan] = useState("pro");
  return (
    <div className="flex w-full max-w-sm items-center justify-center p-8">
      <RadioGroup
        label="Plan"
        value={plan}
        onValueChange={setPlan}
        options={[
          {
            value: "free",
            label: "Free",
            description: "For trying things out",
          },
          {
            value: "pro",
            label: "Pro",
            description: "For individuals and small teams",
          },
          {
            value: "team",
            label: "Team",
            description: "For growing organizations",
          },
        ]}
      />
    </div>
  );
}

Dependencies

More by kuratlielia

View all
  • Activity Heatmap

    Activity Heatmap

    341
  • Image Compare

    Image Compare

    104
  • User Menu

    User Menu

    93
  • Date Range Picker

    Date Range Picker

    62
  • Stats Band

    Stats Band

    52
  • Usage Meter

    Usage Meter

    45
  • Signature Pad

    Signature Pad

    37
  • Timeline

    Timeline

    34

More in Forms

View all
  • Premium Auth

    Premium Auth

    496
  • Login 2

    Login 2

    7
  • Authentication Card

    Authentication Card

    45
  • Login 1

    Login 1

    52
  • Form

    Form

    16
  • Contact Card

    Contact Card

    1K
  • Card Studio

    Card Studio

    41
  • Book A Demo 3

    Book A Demo 3

    83