TailGrids

Radio Button

Buttons

About

A React radio button component built with Tailwind CSS. Create radio groups for single-selection form fields, with labels and accessible options for plans, settings, and preferences.

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

Code

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

Usage.tsx

"use client"

import { RadioGroup, RadioGroupItem } from "@/components/ui/tailgrids-radio-input"

export default function RadioPreview() {
  return (
    <RadioGroup defaultValue="pro" aria-label="Plan">
      <RadioGroupItem value="basic">Basic Plan</RadioGroupItem>
      <RadioGroupItem value="pro">Pro Plan</RadioGroupItem>
      <RadioGroupItem value="enterprise">Enterprise Plan</RadioGroupItem>
    </RadioGroup>
  );
}

Dependencies

More by TailGrids

View all
  • Text Field

    Text Field

  • Spinner

    Spinner

  • Number Field

    Number Field

  • Breadcrumbs

    Breadcrumbs

  • Field

    Field

  • Social Login Buttons

    Social Login Buttons

  • Link

    Link

  • Textarea

    Textarea

More in Buttons

View all
  • Texture Button

    Texture Button

    122
  • Button

    Button

    172
  • HeroUI Button Group

    HeroUI Button Group

    1
  • Button

    Button

    88
  • Native Button

    Native Button

    7
  • Button

    Button

    74
  • Button Group

    Button Group

    5
  • Button

    Button

    21