Y2K UI

Checkbox

A flat checkbox. White when off, lemon yellow when on, with a thick navy border and a bold check mark.

checkbox-demo.app

Installation

terminal.sh
npx y2kui@latest add checkbox

Usage

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

Props

PropTypeDefaultDescription
checkedboolean | 'indeterminate'Controlled checked state.
defaultCheckedbooleanInitial checked state (uncontrolled).
onCheckedChange(checked: boolean | 'indeterminate') => voidFired when the checked state changes.
disabledbooleanfalseDisable the checkbox.

On this page