# Popover picker

> Outline trigger in a labelled field that opens the full picker with an eye dropper and format fields.

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

- Page, with a live preview: https://shadcn.exchange/r/reui/c-color-picker-2
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/reui/c-color-picker-2-light-a877aadc9f58108e.png
- Registry item: https://reui.io/r/new-york-v4/c-color-picker-2.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-color-picker-2.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: `@reui/color-picker`, `field`

## Files

### `c-color-picker-2.tsx`

```tsx
import { ColorPicker } from "@/components/reui/color-picker"

import {
  Field,
  FieldDescription,
  FieldLabel,
} from "@/components/ui/field"

export function Pattern() {
  return (
    <div className="w-full max-w-xs">
      <Field>
        <FieldLabel id="accent-color-label" htmlFor="accent-color">
          Accent color
        </FieldLabel>
        {/* With no children the picker renders its own trigger and popover.
            `aria-labelledby` keeps the value in the trigger's name, so it
            reads "Accent color #0EA5E9" rather than the label alone. */}
        <ColorPicker
          id="accent-color"
          defaultValue="#0ea5e9"
          aria-labelledby="accent-color-label"
          aria-describedby="accent-color-description"
        />
        <FieldDescription id="accent-color-description">
          Used for links, focus rings and primary buttons.
        </FieldDescription>
      </Field>
    </div>
  )
}
```
