# Checkbox with feature badge

> Checkbox with feature badge

A shadcn/ui block from the [@reui](https://reui.io) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/reui/c-checkbox-22).

- Page, with a live preview: https://shadcn.exchange/r/reui/c-checkbox-22
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/reui/c-checkbox-22-light-3ef1c5529a60032c.png
- Registry item: https://reui.io/r/new-york-v4/c-checkbox-22.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://reui.io/r/new-york-v4/c-checkbox-22.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: `badge`, `checkbox`, `field`

## Files

### `c-checkbox-22.tsx`

```tsx
import { Badge } from "@/components/ui/badge"
import { Checkbox } from "@/components/ui/checkbox"
import { Field, FieldLabel } from "@/components/ui/field"

export function Pattern() {
  return (
    <div className="flex flex-col gap-4">
      <Field orientation="horizontal" className="w-auto">
        <Checkbox id="badge-1" defaultChecked />
        <div className="flex items-center gap-2">
          <FieldLabel htmlFor="badge-1">AI-powered suggestions</FieldLabel>
          <Badge className="h-4.5 rounded-full px-1.5 text-[10px] tracking-wider uppercase">
            New
          </Badge>
        </div>
      </Field>

      <Field orientation="horizontal" className="w-auto">
        <Checkbox id="badge-2" />
        <div className="flex items-center gap-2">
          <FieldLabel htmlFor="badge-2">Beta feature access</FieldLabel>
          <Badge
            variant="secondary"
            className="h-4.5 rounded-full px-1.5 text-[10px] tracking-wider uppercase"
          >
            Beta
          </Badge>
        </div>
      </Field>
    </div>
  )
}
```
