# Color input

> Color input

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

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

## Files

### `c-input-28.tsx`

```tsx
import { Field, FieldLabel } from "@/components/ui/field"
import { Input } from "@/components/ui/input"

export function Pattern() {
  return (
    <Field className="w-full max-w-xs">
      <FieldLabel htmlFor="color-picker">Theme Color</FieldLabel>
      <Input
        id="color-picker"
        type="color"
        className="h-10 w-20 cursor-pointer p-1"
        defaultValue="#3b82f6"
      />
    </Field>
  )
}
```
