tag component

Drop-in semantic component. See examples, sizes, variants, and source.

Compact pill for labels, categories, filters, and selections. Drop a tag on any inline element; group multiple tags in a tags container so they share size and color. Adjective modifiers cover style (outline / basic), shape (circular / square), and behavior (clickable / checkable).

Basic Tags

Default Tags

Default Tag Another Tag Third Tag

Size Variations

Tiny Small Default Large Big

Tag Colors

Semantic Colors

Primary Positive Negative Warning Info

Extended Color Palette

Red Orange Yellow Olive Green Teal
Blue Violet Purple Pink Brown Grey Black

Style Variations

Outline Style

Default Outline Primary Outline Positive Outline Negative Outline Warning Outline Info Outline

Basic Style (Minimal)

Basic Tag Primary Basic Positive Basic Negative Basic

Shape Variations

Default Circular Square

Interactive Tags

Closable Tags

Removable Delete Me Remove

Clickable Tags

Click Me Interactive Hover Effect Action Tag

Checkable Tags (Toggle Selection)

JavaScript Python React Vue Angular

Tags with Icons & Avatars

Tags with Icons

Featured Verified Delete Warning Information

Tags with Avatars

User John Doe User Jane Smith User Mike Johnson

Special Tag Styles

Ribbon Style

Left Ribbon Right Ribbon Sale New

Pointing Tags

Points Above Points Below Points Left Points Right

Connected Tags

First Second Third
Connected Group Tags

Tag Input Field

Dynamic Tag Creation

Type and press Enter or comma to create tags. Use Backspace to remove.

Sample Tags
Blue Theme

Container Inheritance

Size Inheritance

All Are Tiny
All Are Small
All Are Large
All Are Big

Color Inheritance

All Primary Tags
All Positive Tags
All Negative Tags

Combined Size & Color Inheritance

Tiny Primary Tags
Small Positive Tags
Large Negative Tags
Big Warning Tags

Individual Overrides

Default Override Color Override Size Override Both Default

Common Use Cases

Category Tags

Technology Design Marketing Business Development

Status Indicators

Active Pending Expired Draft Archived

Applied Filters

Price: $100-$500 Brand: Apple In Stock

User Tags

Admin Admin Editor Editor Viewer Viewer Guest Guest

Skills & Technologies

Frontend
HTML5 CSS3 JavaScript React Vue.js Angular
Backend
Node.js Python Java PHP Ruby Go
Databases
MySQL PostgreSQL MongoDB Redis Firebase

Class API Reference

Type Class Usage Notes
Base tag Required base class Always required
tags Container for multiple tags Children inherit size and color
tag-input Tag editor with text input Combine with tags
Sizes xs Tiny Modifier on tag or tags
sm Small Modifier on tag or tags
(default) Medium No size class needed
xl Large Modifier on tag or tags
lg Big Modifier on tag or tags
Variants outline Border only, no fill Modifier on tag
basic Minimal — no background, no border Modifier on tag
circular / round Pill shape Modifier on tag
square No rounded corners Modifier on tag
ribbon Ribbon-style tag Combine with right for right-pointing
pointing Has a small arrow on one side Combine with above/below/left/right
Intents primary Blue intent Modifier on tag or tags
positive / success Green intent Modifier on tag or tags
negative / error Red intent Modifier on tag or tags
warning Yellow intent Modifier on tag or tags
info Lighter-blue intent Modifier on tag or tags
Extended Palette red / orange / yellow / olive / green / teal / blue / violet / purple / pink / brown / grey / black Direct palette colors Use intents (primary/positive/...) when possible
States clickable Cursor + hover lift Modifier on tag
checkable Toggle selectable tag Modifier on tag
checked Selected appearance for a checkable tag Combine with checkable
animated Fade-in on insertion Modifier on tag
loading Spinner suffix, dim opacity Modifier on tag
disabled Dim + non-interactive Modifier on tag
Layout connected Glues tags together with no gap Modifier on tags
floating Absolute-positioned badge Modifier on tag
Children icon Leading icon child Inside tag
avatar Leading avatar image child Inside tag
close Trailing × button Inside tag