# Disabled

> Disabled unchecked and disabled checked states.

A shadcn/ui block from the [@flx](https://ui.flexnative.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/flx/checkbox-03).

- Page, with a live preview: https://shadcn.exchange/r/flx/checkbox-03
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/flx/checkbox-03-light-28c6f74eac8644b0.png
- Registry item: https://ui.flexnative.com/r/checkbox-03.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.flexnative.com/r/checkbox-03.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `checkbox`, `label`

## Files

### `registry/patterns/checkbox/checkbox-03.tsx`

```tsx
import { Checkbox } from '@/components/ui/checkbox'
import { Label } from '@/components/ui/label'

export function Checkbox03() {
  return (
    <div className="flex flex-col gap-4">
      <div className="flex items-center gap-3">
        <Checkbox id="checkbox-03-a" disabled />
        <Label htmlFor="checkbox-03-a" className="opacity-50">
          Disabled unchecked
        </Label>
      </div>
      <div className="flex items-center gap-3">
        <Checkbox id="checkbox-03-b" disabled defaultChecked />
        <Label htmlFor="checkbox-03-b" className="opacity-50">
          Disabled checked
        </Label>
      </div>
    </div>
  )
}
```
