Checkbox

PreviousNext

A control that allows the user to toggle between checked and not checked with optional glassy variant.

Docs
glass-uicomponent

Preview

Loading preview…
lib/utils.ts
import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"

export function cn(...inputs: ClassValue[]) {
  return twMerge(clsx(inputs))
}

Installation

npx shadcn@latest add @glass-ui/checkbox

Usage

import { Checkbox } from "@/components/checkbox"
<Checkbox />