Animated Color Selector

Preview

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/color-selector

API Reference

ColorSelector

value?
string
Default—
defaultValue?
string
Default
onValueChange?
((value: string) => void)
Default—
name?
string

The radio group name used in form submission. Generated when omitted.

Default—
required?
boolean
Defaultfalse
className?
string
Default—

ColorSelectorLabel

className?
string
Default—

ColorSelectorList

className?
string
Default—

ColorSelectorItem

value
string
Default—
color
string

Any CSS color, including a custom property.

Default—
label
string

Accessible color name; selection never relies on color alone.

Default—
className?
string

Applied to the visible swatch surface.

Default—

Updated