Components
Loading preview...
A 2D color picker for selecting colors from a gradient area.
@reapollo
npx shadcn@latest add https://21st.dev/r/larsen66/heroui-color-areaimport { ColorArea } from "@/components/ui/heroui-color-area";
export default function DefaultDemo() {
return (
<div className="flex min-h-screen w-full items-center justify-center overflow-hidden bg-background p-8">
<ColorArea defaultValue="rgb(116, 52, 255)">
<ColorArea.Thumb />
</ColorArea>
</div>
);
}
export { DefaultDemo };