EDS4 logo
@eds/tag
v4.0.18

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 filled.

"outline" | "filled"