Componentsv2.189.0
Iconsv1.19.0
MCPv0.8.61
Tokensv0.34.3

The Tag component is used to display categorized labels, status indicators, or metadata in an application. It is designed for clarity and flexibility, supporting different frameworks and customization options.

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