BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Wednesday UI/color-input

Color Input

wednesday-ui/color-input
FreeComponent

A color input component

Install it

npx shadcn@latest add https://ui.ednesdayw.com/r/color-input.json

Source

src/registry/ui/color-input.tsxui.ednesdayw.com/r/color-input.json
1"use client";
2
3import { cn } from "@/lib/utils";
4import { ColorPicker } from "@/components/ui/color-picker";
5import { Input, type InputProps } from "@/components/ui/input";
6
7interface ColorInputProps
8 extends Omit<InputProps, "value" | "onChange" | "startContent"> {
9 type?: "hex" | "hex-alpha";
10 value: string;
11 onChange: (value: string) => void;
12}
13
14const ColorInput = ({
15 variant,
16 className,
17 value = "#4ec4b8",
18 type = "hex",
19 onChange,
20 ...props
21}: ColorInputProps) => {
22 return (
23 <Input
24 {...props}
25 variant={variant}
26 className={cn("p-2", className)}
27 value={value}
28 onChange={(e) => {
29 const value = e.target.value;
30 onChange(value);
31 }}
32 startContent={
33 <ColorPicker
34 type={type}
35 sideOffset={16}
36 alignOffset={variant === "underline" ? -4 : -12}
37 value={value}
38 onChange={(value) => {
39 onChange(value);
40 }}
41 />
42 }
43 />
44 );
45};
46
47export { ColorInput, type ColorInputProps };

What it pulls in

Other registry items

  • https://ui.ednesdayw.com/r/color-picker.json
  • https://ui.ednesdayw.com/r/input.json

Files it writes

  • src/registry/ui/color-input.tsx

Facts

Registry
Wednesday UI
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-01
Last confirmed
yesterday

Go to the source

ui.ednesdayw.com xxxijustwei/ednesdayW on GitHub Raw registry item This item as JSON

More from Wednesday UI

All 99 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AutocompleteautocompleteWednesday UIComponentsFree1 dep
Autocomplete Disabled Demoautocomplete-disabled-demoWednesday UIComponentsFreeno deps
Autocomplete Disabled Item Demoautocomplete-disabled-item-demoWednesday UIComponentsFreeno deps
Autocomplete Form Demoautocomplete-form-demoWednesday UIComponentsFreeno deps
Autocomplete Invalid Demoautocomplete-invalid-demoWednesday UIComponentsFreeno deps
Autocomplete Size Demoautocomplete-size-demoWednesday UIComponentsFreeno deps
Autocomplete Start Content Demoautocomplete-start-content-demoWednesday UIComponentsFreeno deps
Autocomplete Variant Demoautocomplete-variant-demoWednesday UIComponentsFreeno deps
BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex