Tags represent user-generated, interactive categorization — items a person can add, apply, and remove, like filter criteria or audience attributes.

Importing

The component can be imported via:

import { Tag } from '@customerio/pluma-components/react';

Usage

Loading editor

Variant

PlumaTag supports multiple variants via the variant prop:

Loading editor
Loading editor
Loading editor

Close button

A close button can be added to PlumaTag when the onDelete prop is provided, which will be called when the button is clicked.

Loading editor
Loading editor
Loading editor

Compact

A compact (smaller) version of the tag can be rendered with the isCompact prop:

Loading editor
Loading editor
Loading editor
Loading editor
Loading editor

API

PlumaTag extends Box

Default:false

Whether the tag should render in a smaller style

Default:false

Whether the tag is disabled

Function to call when the "X" close button is clicked. Providing this prop will render the close button.

Whether to call event.stopPropagation() in the onMouseDown event of the delete button.

Whether the delete button should render as a span with role="button" (instead of a button element)

Default:default

The variant of the tag

On this page