react98

Checkbox

A Windows 98 checkbox with an optional inline label.

Preview

checkbox.exe

Installation

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

Usage

import { Checkbox } from "@/components/ui/98/checkbox";

export function Example() {
  return <Checkbox label="Enabled" defaultChecked />;
}

Props

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

On this page