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 GradientPickerDemo() {
const [fill, setFill] = useState(
"linear-gradient(135deg, #3E5CEB 0%, #22C55E 100%)"
);
return (
<div className="flex flex-col items-center gap-4 p-6">
<div
className="h-24 w-full max-w-[280px] rounded-lg border"
style={{ background: fill }}
/>
<GradientPicker value={fill} onChange={setFill} />
</div>
);
}
