About
Color picker on react-colorful with HEX / RGB / HSL inputs (colord), an eyedropper where supported, and recent swatches.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Color Picker to your project and fits it to your theme.
Code
How Color Picker is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import * as React from "react";
import {
ColorPicker,
ColorPickerTrigger,
ColorPickerContent,
} from "@/components/ui/color-picker";
export default function ColorPickerDemo() {
return (
<div className="flex w-full max-w-xs items-center justify-center p-8">
<ColorPicker defaultValue="#0ea5e9">
<ColorPickerTrigger className="max-w-56" />
<ColorPickerContent />
</ColorPicker>
</div>
);
}








