Homelogologo
Sponsor

Tag

A versatile tag component for categorizing content, displaying status, or labeling items.

Usage

The Tag component is used to label, categorize, or organize items using keywords that describe them.

import { Tag } from "@elemnts-ui/react" <Tag>Tag Content</Tag>

Examples

Variants

Change the visual appearance of the tag by using the variant prop.

With Icon

You can add icon to a tag to provide more context. Use the iconOnly prop for tags that only contain an icon.

API Reference

PropTypeDefault
size'xs' | 'sm' | 'md' | 'lg' | 'xl''md'
tone'primary' | 'secondary' | 'tertiary''primary'
variant'primary' | 'secondary' | 'tertiary''primary'
iconOnlybooleanfalse
selectedbooleanfalse
disabledbooleanfalse