Skip to content
SENVENLI UI

Color swatch

One named color tile with a faint inset edge, so light colors show on light grounds.
A named color
import { ColorSwatch } from "@senvenli/react/color";

Examples

Beside its value

A small palette, each color with its name and hex.

Guidelines

When to use it

  • Showing a color next to its name or value.

Use something else when

Accessibility

Built in

  • The name is the accessible label; without one, the color is described.

You provide

  • A name when the color carries meaning.

API reference

ColorSwatch

colorRequired
string

The color shown ("#1E63D0").

name
string

Its name ("Ocean"): the accessible label.

className
string