Welcome UI logo
FOUNDATIONSCOMPONENTSBLOG650+
10.0.1

Menu

    Actions

    • Button
    • ButtonGroup
    • Close Button
    • Link

    Data display

    • Accordion
    • Avatar
    • Badge
    • Card
    • Swiper
    • Table
    • Tag
    • VisuallyHidden

    Feedback

    • Alert
    • StickyNote

      NEW

    • Toast

    Forms

    • Checkbox
    • DatePicker
    • DateTimePicker
    • Field
    • FileDrop
    • FileUpload
    • Hint
    • InputText
    • Label
    • PasswordInput
    • Radio
    • RadioGroup
    • RadioTab
    • Search
    • Select
    • Slider
    • Textarea
    • TimePicker
    • Toggle

    Icons & logo

    • Icon
    • IconStamp

      NEW

    • Logo
    • VariantIcon
    • WelcomeLoader

    Layout

    • AspectRatio
    • Loader
    • Window

      NEW

    Navigation

    • Breadcrumb
    • DropdownMenu
    • Pagination
    • Stepper

      NEW

    • Tabs

    Overlay

    • Drawer
    • Modal
    • Popover
    • Tooltip

    Typography

    • Text

    Utilities

    • Grid background

Overview

Props

Tag

The Tag component is a small, interactive UI element used to label, categorize, or filter content. It can display text or icons and often supports actions like deletion or selection. Tags enhance user experience by providing a clear and concise way to organize information, highlight key attributes, or manage items dynamically.

Source
Github
import { Tag } from 'welcome-ui/Tag'
const Example = () => {
return <Tag>Default</Tag>
}
export default Example

Examples

The default use of Stack will stack its children vertically.

Variants

Use the variant prop to change the appearance of the tag.

Github

Sizes

Use size property with md or lg (default).

Github

With icon

Add an icon prop to display an icon alongside the tag text.

Github

AI

Use the ai prop to automatically display a sparkles icon, and specific outline gradient colors. When ai is set to true, it overrides any custom icon.

Github

List of clickable tags

When we have a clickable tag, we apply an hover state.

Github

One character

When we have only one character, we apply same size for the width and height

Github

OnRemove

Simply add a function onRemove to reveal a cross icon with a remove action (or other).

Github

Disabled

Use the disabled prop to disable tag interaction.

Github
TableVisually hidden

On this page

  • Definition
  • Examples
    • Variants
    • Sizes
    • With icon
    • AI
    • List of clickable tags
    • One character
    • OnRemove
    • Disabled
Made with by
Welcome to the jungle logo

Documentations

  • Foundations
  • Components
  • Source code

Updates

  • Releases
  • Issues

Community

  • Github
  • Twitter
  • Medium
  • Jobs