Animated Color Selector

Composable color swatches with a spring-gliding selection ring, press feedback, native radio keyboard navigation, and controlled or uncontrolled state.

Preview

Accent

Install

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

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

API Reference

ColorSelector

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

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

—
required?
boolean
false
className?
string
—

ColorSelectorLabel

className?
string
—

ColorSelectorList

className?
string
—

ColorSelectorItem

value
string
—
color
string

Any CSS color, including a custom property.

—
label
string

Accessible color name; selection never relies on color alone.

—
className?
string

Applied to the visible swatch surface.

—

Updated