# With description

> Checkbox with a label and helper description.

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

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

## Install

```bash
npx shadcn@latest add https://ui.flexnative.com/r/checkbox-02.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`, `field`

## Files

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

```tsx
import { Checkbox } from '@/components/ui/checkbox'
import {
  Field,
  FieldContent,
  FieldDescription,
  FieldLabel,
} from '@/components/ui/field'

export function Checkbox02() {
  return (
    <Field orientation="horizontal" className="max-w-sm">
      <Checkbox id="checkbox-02-newsletter" defaultChecked />
      <FieldContent>
        <FieldLabel htmlFor="checkbox-02-newsletter">
          Subscribe to the newsletter
        </FieldLabel>
        <FieldDescription>
          Get product updates and tips once a week. Unsubscribe anytime.
        </FieldDescription>
      </FieldContent>
    </Field>
  )
}
```
