eds-tag

Explore the Interactive Component

Use the playground below to experiment with the component. Click the button to view the full Storybook deployment for additional examples and configurations.

eds-tag Open in Storybook

See It in Use with Code

Check out this practical implementation of component.

Plain HTML

In React and Vue

Overview

EdsTag is a stylized label component designed to display short, categorical information. It follows the EBRAINS label look — IBM Plex Mono, uppercase, a thin outline and a small radius — with several visual intents (including tinted status chips) and three sizes.

Properties

PropertyAttributeDescriptionTypeDefault
intentintentThe visual style or intent of the tag. - brand (default) / primary: the brand category tag — thin outline, default text. - dark: a quiet grey tag. strong: solid brand-black fill. - inverse: white outline + text, for dark grounds. - brand-dark: green-tinted accent tag. - success | warning | error | info: tinted status chips. - chip / chip-off: soft pills for a set of names (on / listed but not in effect)."brand" | "brand-dark" | "chip" | "chip-off" | "dark" | "error" | "info" | "inverse" | "primary" | "strong" | "success" | "warning"'brand'
label (required)labelThe label to be displayed inside the tag.stringundefined
sizesizeThe size of the tag: small, medium, or large."large" | "medium" | "small"'large'

Dependencies

Used by

Graph

graph TD;
  eds-card-app --> eds-tag
  eds-card-generic --> eds-tag
  eds-kg-learning-resources --> eds-tag
  style eds-tag fill:#f9f,stroke:#333,stroke-width:4px

Built with StencilJS