Title: ColorIndicator
Published: March 9, 2021
Last modified: October 20, 2026

---

# ColorIndicator

## In this article

 * [Single component](https://developer.wordpress.org/block-editor/reference-guides/components/color-indicator/?output_format=md#single-component)
 * [Used in sidebar](https://developer.wordpress.org/block-editor/reference-guides/components/color-indicator/?output_format=md#used-in-sidebar)
 * [Usage](https://developer.wordpress.org/block-editor/reference-guides/components/color-indicator/?output_format=md#usage)
 * [Props](https://developer.wordpress.org/block-editor/reference-guides/components/color-indicator/?output_format=md#props)
    - [className: string](https://developer.wordpress.org/block-editor/reference-guides/components/color-indicator/?output_format=md#classname-string)
    - [colorValue: CSSProperties[ ‘background’ ]](https://developer.wordpress.org/block-editor/reference-guides/components/color-indicator/?output_format=md#colorvalue-cssproperties-background)

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.

### 󠀁[Single component](https://developer.wordpress.org/block-editor/reference-guides/components/color-indicator/?output_format=md#single-component)󠁿

![simple color indicator](https://i0.wp.com/user-images.githubusercontent.com/881729/
147558034-cba09db5-2f06-458b-a7b1-fd2f2ffb982a.png?ssl=1)

### 󠀁[Used in sidebar](https://developer.wordpress.org/block-editor/reference-guides/components/color-indicator/?output_format=md#used-in-sidebar)󠁿

![multiple color indicator](https://i0.wp.com/user-images.githubusercontent.com/
881729/147559177-69ce52e1-30dc-4f24-8483-ca2a580f434f.png?ssl=1)

## 󠀁[Usage](https://developer.wordpress.org/block-editor/reference-guides/components/color-indicator/?output_format=md#usage)󠁿

    ```language-jsx
    import { ColorIndicator } from '@wordpress/components';

    const MyColorIndicator = () => <ColorIndicator colorValue="#0073aa" />;
    ```

## 󠀁[Props](https://developer.wordpress.org/block-editor/reference-guides/components/color-indicator/?output_format=md#props)󠁿

The component accepts the following props:

### 󠀁[className: string](https://developer.wordpress.org/block-editor/reference-guides/components/color-indicator/?output_format=md#classname-string)󠁿

Extra classes for the used `<span>` element. By default only `component-color-indicator`
is added.

 * Required: No

### 󠀁[colorValue: CSSProperties[ ‘background’ ]](https://developer.wordpress.org/block-editor/reference-guides/components/color-indicator/?output_format=md#colorvalue-cssproperties-background)󠁿

The color of the indicator. Any value from the CSS [`background`](https://developer.mozilla.org/en-US/docs/Web/CSS/background)
property is supported.

 * Required: No

First published

March 9, 2021

Last updated

October 20, 2026

Edit article

[ Improve it on GitHub: ColorIndicator ](https://github.com/WordPress/gutenberg/edit/trunk/packages/components/src/color-indicator/README.md)

[  Previous: ClipboardButton](https://developer.wordpress.org/block-editor/reference-guides/components/clipboard-button/)

[  Next: ColorPalette](https://developer.wordpress.org/block-editor/reference-guides/components/color-palette/)