EDS4 logo
@eds/tag
v5.0.2

Tag

Tags show attributes of related components.
Prop
Required
Description
Type
label

The label of the Tag.

string
onClickRemove

The click handler for the X remove button.

() => void
disabled

Disables the Tag and X remove button.

boolean
icon

Icon added to the left of the label.

ComponentClass<IconProps, any> | FunctionComponent<IconProps>
maxWidth

Max width of the tag. Defaults to 12.5rem.

size

Size of the Tag. Defaults to medium.

"small" | "medium"
tone

Apply styles per tone. Defaults to informative.

"informative" | "neutral"
weight

Apply styles per weight. Defaults to filled.

"filled" | "outlined"