Tag

A Tag component is a user interface element used to visually label or categorize items or content. It provides a way to quickly convey information about an item's attributes or characteristics.

Use Cases:

✅ Categorizing or labeling items: Use "Tag" to provide visual labels that help users quickly identify the attributes or categories of items, such as articles, products, or photos.

✅ Filtering or sorting: "Tag" components can be used to enable users to filter or sort content based on specific attributes. Clicking on a tag could trigger a filtering action.

✅ Highlighting important information: Tags can be used to highlight key information, such as "New," "Featured," or "Sale," to draw attention to specific items.

✅ Associating keywords: Tags can represent keywords or topics associated with content, making it easier for users to find related items.

Not to Use Cases:

❌ Using "Tag" for non-categorization purposes: "Tag" components should not be used purely for decorative purposes without conveying meaningful information.

❌ Overloading with too many tags: Avoid overwhelming users by using an excessive number of tags, as it can lead to visual clutter and confusion.

❌ Using "Tag" for interactive actions: "Tag" components are primarily for visual representation and categorization, not for triggering interactive actions. Individual tags should not have independent interactive behaviors.

❌ Using "Tag" without clear context: Each "Tag" should have a clear and meaningful purpose, providing valuable information or categorization. Avoid using tags arbitrarily or without a specific purpose.

Last updated