ColorIndicator is a React component that renders a specific color in a circle. It’s often used to summarize a collection of used colors in a child component.
import { ColorIndicator } from '@wordpress/components';
LinksPermalink to this section
PropsPermalink to this section
| Name | Default | Description |
|---|---|---|
colorValue Required |
The color of the indicator. Any value from the CSS |
ExamplesPermalink to this section
DefaultPermalink to this section
const Default = () => <ColorIndicator colorValue="#0073aa" />;