checkbox-disabled

PreviousNext
Docs
takiexample

Preview

Loading preview…
registry/new-york/examples/checkbox-disabled.tsx
import { Checkbox } from "@/registry/new-york/ui/checkbox"

export default function CheckboxDisabled() {
  return (
    <div className="flex items-center space-x-2">
      <Checkbox id="terms2" disabled />
      <label
        htmlFor="terms2"
        className="text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
      >
        Accept terms and conditions
      </label>
    </div>
  )
}

Installation

npx shadcn@latest add @taki/checkbox-disabled

Usage

import { CheckboxDisabled } from "@/components/checkbox-disabled"
<CheckboxDisabled />