react98

Radio

A Windows 98 radio input with an optional inline label.

Preview

radio.exe

Installation

pnpm dlx shadcn@latest add https://react98-ui.vercel.app/r/radio.json
npx shadcn@latest add https://react98-ui.vercel.app/r/radio.json
yarn dlx shadcn@latest add https://react98-ui.vercel.app/r/radio.json
bunx shadcn@latest add https://react98-ui.vercel.app/r/radio.json

Usage

import { Radio } from "@/components/ui/98/radio";

export function Example() {
  return <Radio label="Classic" name="theme" defaultChecked />;
}

Props

PropTypeDescription
labelReactNodeOptional text or node rendered next to the radio input.
...InputHTMLAttributes<HTMLInputElement>All native radio input attributes pass through.

On this page