BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/diceui/base/color-picker
This component no longer exists. It was in diceui/base’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-13 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.

color-picker

diceui-base/color-picker
RemovedComponent

diceui/base publishes no description for this item.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/sadmann7/diceui/HEAD/docs/public/r/styles/base-vega/color-picker.json

Source

ui/color-picker.tsxraw.githubusercontent.com/sadmann7/diceui/HEAD/docs/public/r/styles/base-vega/color-picker.json · first 6 KB
1"use client";
2
3import { mergeProps } from "@base-ui/react/merge-props";
4import type { Popover as PopoverPrimitive } from "@base-ui/react/popover";
5import { Slider as SliderPrimitive } from "@base-ui/react/slider";
6import { useRender } from "@base-ui/react/use-render";
7import { cva, type VariantProps } from "class-variance-authority";
8import { PipetteIcon } from "lucide-react";
9import * as React from "react";
10import { cn } from "@/lib/utils";
11import { VisuallyHiddenInput } from "@/registry/bases/base/components/visually-hidden-input";
12import { useAsRef } from "@/registry/bases/base/hooks/use-as-ref";
13import { useIsomorphicLayoutEffect } from "@/registry/bases/base/hooks/use-isomorphic-layout-effect";
14import { useLazyRef } from "@/registry/bases/base/hooks/use-lazy-ref";
15import { useComposedRefs } from "@/registry/bases/base/lib/compose-refs";
16import { Button } from "@/registry/bases/base/ui/button";
17import { useDirection } from "@/registry/bases/base/ui/direction";
18import { Input } from "@/registry/bases/base/ui/input";
19import {
20 Popover,
21 PopoverContent,
22 PopoverTrigger,
23} from "@/registry/bases/base/ui/popover";
24import {
25 Select,
26 SelectContent,
27 SelectItem,
28 SelectTrigger,
29 SelectValue,
30} from "@/registry/bases/base/ui/select";
31
32const ROOT_NAME = "ColorPicker";
33const ROOT_IMPL_NAME = "ColorPickerImpl";
34const TRIGGER_NAME = "ColorPickerTrigger";
35const CONTENT_NAME = "ColorPickerContent";
36const AREA_NAME = "ColorPickerArea";
37const HUE_SLIDER_NAME = "ColorPickerHueSlider";
38const ALPHA_SLIDER_NAME = "ColorPickerAlphaSlider";
39const SWATCH_NAME = "ColorPickerSwatch";
40const EYE_DROPPER_NAME = "ColorPickerEyeDropper";
41const FORMAT_SELECT_NAME = "ColorPickerFormatSelect";
42const INPUT_NAME = "ColorPickerInput";
43
44const colorFormats = ["hex", "rgb", "hsl", "hsb"] as const;
45
46interface DivProps
47 extends React.ComponentProps<"div">,
48 useRender.ComponentProps<"div"> {}
49
50type RootElement = HTMLDivElement;
51type AreaElement = HTMLDivElement;
52type InputElement = HTMLInputElement;
53
54type PopoverChangeEventDetails = PopoverPrimitive.Root.ChangeEventDetails;
55
56type ColorFormat = (typeof colorFormats)[number];
57
58/**
59 * @see https://gist.github.com/bkrmendy/f4582173f50fab209ddfef1377ab31e3
60 */
61interface EyeDropper {
62 open: (options?: { signal?: AbortSignal }) => Promise<{ sRGBHex: string }>;
63}
64
65declare global {
66 interface Window {
67 EyeDropper?: {
68 new (): EyeDropper;
69 };
70 }
71}
72
73interface ColorValue {
74 r: number;
75 g: number;
76 b: number;
77 a: number;
78}
79
80// … truncated

What it pulls in

npm packages

  • @base-ui/react

Other registry items

  • button
  • input
  • popover
  • select
  • direction
  • @diceui/use-as-ref
  • @diceui/use-isomorphic-layout-effect
  • @diceui/use-lazy-ref
  • @diceui/compose-refs

Files it writes

  • ui/color-picker.tsx
  • components/visually-hidden-input.tsx

Facts

Registry
diceui/base
Type
registry:ui
Access
Free
Files written
2
Licence
the repository states none
In the index
at or before 2026-08-09
Last confirmed
6 days ago

Go to the source

www.diceui.com sadmann7/diceui on GitHub Raw registry item This item as JSON

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex