About
A selectable grid or stack of color swatches for picking a preset color, built on React Aria Components and styled with Tailwind CSS.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Color Swatch Picker to your project and fits it to your theme.
Code
How Color Swatch Picker is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import {
ColorSwatchPicker,
ColorSwatchPickerItem,
} from "@/components/ui/tailwind-colorswatchpicker";
export default function ColorSwatchPickerDemo() {
return (
<ColorSwatchPicker>
<ColorSwatchPickerItem color="#A00" />
<ColorSwatchPickerItem color="#f80" />
<ColorSwatchPickerItem color="#080" />
<ColorSwatchPickerItem color="#08f" />
<ColorSwatchPickerItem color="#008" />
</ColorSwatchPicker>
);
}
















