ColorSwatch

ColorSwatch is a component that displays color samples.

Usage

import { ColorSwatch } from "@yamada-ui/react"
<ColorSwatch />

Change Variant

Change Size

Alpha

Example of color swatch using alpha channels.

Disable Shadow

By default, a shadow is included inline to make the color easier to see. To disable the shadow, set withShadow to false.

Group

To create color swatch containing multiple colors, use ColorSwatchGroup.

Props

Accessibility

Currently, this section is being updated due to the migration of v2.