Radio
A Windows 98 radio input with an optional inline label.
Preview
Installation
pnpm dlx shadcn@latest add https://react98-ui.vercel.app/r/radio.jsonnpx shadcn@latest add https://react98-ui.vercel.app/r/radio.jsonyarn dlx shadcn@latest add https://react98-ui.vercel.app/r/radio.jsonbunx shadcn@latest add https://react98-ui.vercel.app/r/radio.jsonUsage
import { Radio } from "@/components/ui/98/radio";
export function Example() {
return <Radio label="Classic" name="theme" defaultChecked />;
}Props
| Prop | Type | Description |
|---|---|---|
label | ReactNode | Optional text or node rendered next to the radio input. |
... | InputHTMLAttributes<HTMLInputElement> | All native radio input attributes pass through. |