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 WithDotsDemo() {
return (
<div className="flex min-h-screen w-full items-center justify-center overflow-hidden bg-background p-8">
<ColorArea showDots defaultValue="hsl(200, 100%, 50%)">
<ColorArea.Thumb />
</ColorArea>
</div>
);
}
export { WithDotsDemo };