UIInternal UI

Primitives

ColorSwatch

@randall-enterprises/ui/components/primitives/color-swatch

A color block with positioned overlay slots for labels and badges.

Props (2)

Inherits everything from <div> props.

value *stringColour value (hex, rgb, oklch, a resolved custom property...).
namestringOptional name for the colour; doubles as the title attribute.