THEME
MOTION
HAPTIC
SOUND

TAG

Accent-colored outlined marker for keywords, filters, or classifications. Optional `onRemove` renders a trailing × button.

Live demo

Import

import { Tag } from '@cathode-ui/react';

Props

Name Type Default Required Description
children ReactNode yes
accent 'neutral'|'info'|'success'|'warning'|'danger'|'amber'|'pink'|'purple'|'teal'|'grey' neutral
onRemove () => void When set, renders a close button after the label.
removeLabel string Remove ARIA label for the remove button.

Examples

filter

<Tag accent="info">ENGINEERING</Tag>

removable

<Tag accent="amber" onRemove={() => drop("p1")}>P1</Tag>

Accessibility

Role: text

Feedback

Hapticnone
Soundnone

← All components