EF
EF Design System

Tag

Selectable chip tags for filtering, categorization, and multi-select. Each includes a check icon when selected.

Selectable Tags

Click tags to toggle selection. Selected tags show a checkmark and colored background.

Selected: AI, Design
tsx
const [selected, setSelected] = useState(new Set(["AI"]));

<Tag
  label="AI"
  selected={selected.has("AI")}
  onToggle={() => toggle("AI")}
/>

Color Variants

tsx
<Tag label="Primary" color="primary" selected />
<Tag label="Success" color="success" selected />
<Tag label="Danger" color="danger" />

Props

PropTypeDefaultDescriptionRequired
labelstring-Tag display textNo
color"primary" | "info" | "success" | "warning" | "danger" | "neutral""primary"Color schemeNo
selectedbooleanfalseWhether the tag is selectedNo
onToggle() => void-Callback when tag is clickedNo

Usage Guidelines

  • Use tags for multi-select filtering, topic categorization, or skill lists.
  • Group related tags together and limit visible options to avoid overwhelm.
  • The check icon provides visual confirmation of selection state.
  • Use color variants to distinguish between tag categories.