Tag
Variants
Section titled “Variants”Choose the variant that best communicates the semantic intent of the label.
Neutral
Section titled “Neutral”import { Tag } from '@eekodigital/raster';
<Tag>Archived</Tag> Success
Section titled “Success”Published
<Tag variant="success">Published</Tag> Danger
Section titled “Danger”Overdue
<Tag variant="danger">Overdue</Tag> Warning
Section titled “Warning”Pending review
<Tag variant="warning">Pending review</Tag> In progress
<Tag variant="info">In progress</Tag> All variants
Section titled “All variants”Published
Overdue
Pending review
In progress
<Tag>Archived</Tag>
<Tag variant="success">Published</Tag>
<Tag variant="danger">Overdue</Tag>
<Tag variant="warning">Pending review</Tag>
<Tag variant="info">In progress</Tag> | Prop | Type | Default | Description |
|---|---|---|---|
variant | ’neutral’ | ‘success’ | ‘danger’ | ‘warning’ | ‘info' | 'neutral’ | Controls the colour scheme of the tag. |
children | ReactNode | — | The label text or content inside the tag. |
className | string | — | Additional CSS class names. |