Command Palette

Search for a command to run...

Docs
Color Input

A color input component

Installation

pnpm dlx shadcn@latest add "https://ui.ednesdayw.com/r/color-input.json"
import { useState } from "react";
import { ColorInput } from "@/components/ui/color-input";
 
const Page = () => {
    const [color, setColor] = useState("#4ec4b8");
    return (
        <ColorInput value={color} onChange={(value) => setColor(value)} />
    );
}

Example