About
Color and gradient picker for React. Solid, linear, radial and conic gradients, OKLCH, eyedropper and swatch groups. Plain CSS strings in and out. MIT, from Colorshot by Orshot.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Colorshot Gradient Picker to your project and fits it to your theme.
Code
How Colorshot Gradient Picker is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import { useState } from "react";
import GradientPicker from "@/components/ui/colorshot-gradient-picker";
export default function BrandSwatchesDemo() {
const [color, setColor] = useState("#3E5CEB");
return (
<div className="flex justify-center p-6">
<GradientPicker
value={color}
onChange={setColor}
modes={["solid"]}
swatches={[
{
id: "brand",
label: "Brand",
colors: ["#3E5CEB", "#22C55E", "#F97316", "#EC4899", "#111827"],
},
{ id: "recent", label: "Recent", recent: true },
]}
/>
</div>
);
}
