Back to Components
Inputs

Radio

Single radio button input with label and style preset support.

PropsUsage ExampleVariations

Selected plan: pro

Dependencies

  • clsx
  • tailwind-merge

Files

  • components/ui/radio.tsx

Installation

Using shadcn CLI

npx shadcn add radio --url https://ui.hampton.io

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge

Related Inputs Components