Tag

<wa-tag> Stable Since 2.0

Tags label, categorize, or represent selections with a compact visual marker. Use them for status indicators, filters, or removable chips.

Brand Success Neutral Warning Danger

Examples

Link to This Section

Appearance

Link to This Section

Use the size attribute to change a tag's visual appearance. The default appearance is filled-outlined.

Sizes

Link to This Section

Use the size attribute to change a tag's size.

Extra Small Small Medium Large Extra Large

Pill

Link to This Section

Use the pill attribute to give tabs rounded edges.

Extra Small Small Medium Large Extra Large

Removable

Link to This Section

Use the with-remove attribute to add a remove button to the tag.

Extra Small Small Medium Large Extra Large

Importing

Link to This Section

If you're using the autoloader or a hosted project, components load on demand — no manual import needed. To cherry-pick a component manually, use one of the following snippets.

CDN npm Self-Hosted React

Import this component directly from the CDN:

import 'https://ka-f.webawesome.com/[email protected]/components/tag/tag.js';

After installing Web Awesome via npm, import this component:

import '@awesome.me/webawesome/dist/components/tag/tag.js';

If you're self-hosting Web Awesome, import this component from your server:

import './webawesome/dist/components/tag/tag.js';

To import this component for React 18 or below, use the following code:

import WaTag from '@awesome.me/webawesome/dist/react/tag/index.js';

Slots

Link to This Section

Learn more about using slots.

Attributes & Properties

Link to This Section

Learn more about attributes and properties.

Events

Link to This Section

Learn more about events.

CSS parts

Link to This Section

Learn more about CSS parts.

Dependencies

Link to This Section

This component automatically imports the following elements. Sub-dependencies, if any exist, will also be included in this list.

Need a hand? Report a bug Ask for help
    No results