Skip to Content

Tag

Small tag labels to insert anywhere.

Playground

Props

Examples

Colors

PrimaryLinkInfoSuccessWarningDangerBlackDarkLightWhite

Sizes

NormalMediumLarge

Modifiers

RoundedLight

List of tags

The Tags component is a container for a list of tags.

OneTwoThree

Addons

You can attach tags together with the addons prop on the Tags container.

npm0.5.0
Delete

Props

Tag

PropTypeDefaultDescription
asElementType'span'The HTML element to render as.
childrenReactNode-The content of the tag.
clampbooleanfalseTruncates text to a single line.
classNamestring-Additional CSS classes.
colorThemeColor-Sets the color of the tag.
iconDynamicIcon-An icon to display inside the tag.
lightbooleanfalseApplies the light color variant.
roundedbooleanfalseMakes the tag fully rounded (pill shape).
sizeThemeSize-Sets the size of the tag.

Tags

PropTypeDefaultDescription
addonsbooleanfalseAttaches tags together.
alignment'centered' | 'right'-Aligns the tags.
childrenReactNode-The tags to display.
classNamestring-Additional CSS classes.

See also

Last updated on