For AI agents: the complete documentation index is available at https://rickyshin93.github.io/tao-ui/llms.txt, the full documentation bundle is available at https://rickyshin93.github.io/tao-ui/llms-full.txt, and this page is available as Markdown at https://rickyshin93.github.io/tao-ui/components/tag.md.
v0.0.57
  • English
  • Tag

    Data Display@rockshin/tao-ui

    Displays compact labels, statuses, categories, or checkable chips.

    When to use

    Use Tag for lightweight metadata or status markers. Use CheckableTag for compact filter choices.

    Recommended

    • Use semantic colors consistently.
    • Keep tag text short.

    Avoid

    • Do not encode critical state by color alone.

    Examples

    Basic usage

    DefaultPrimarySuccessWarningError
    TSX

    Variants

    FilledSuccessWarning
    SolidSuccessError
    OutlinedWarning
    TSX

    Custom colors and closable tags

    Custom tealCustom ochreClosableDisabled
    TSX

    Checkable tags

    DesignEngineeringResearch
    TSX

    Custom colors

    Use custom colors for categories while keeping their meaning in readable text.

    IndigoPinkTealOrangeViolet
    IndigoPinkTealOrangeViolet
    IndigoPinkTealOrangeViolet
    TSX

    Tags with icons

    Icons assist recognition while text retains the full meaning.

    🔥Hot✅Done⚡Fast🏷️Label
    TSX

    Checkable tags

    Use checked and its change callback for lightweight category filtering.

    reactvueangularsveltesolid
    TSX

    Disabled tags

    Disable selection or removal while retaining the label for reading.

    DisabledDisabled SolidCan't CloseCan't Check
    TSX

    API

    Tag

    PropertyDescriptionTypeDefault Value
    disabledWhether to disableboolean | undefined-
    classNameAdditional css classstring | undefined-
    styleAdditional styleCSSProperties | undefined-

    Tag.CheckableTag

    PropertyDescriptionTypeDefault Value
    disabledWhether to disableboolean | undefined-
    classNameAdditional css classstring | undefined-
    styleAdditional styleCSSProperties | undefined-

    CheckableTag

    PropertyDescriptionTypeDefault Value
    disabledWhether to disableboolean | undefined-
    classNameAdditional css classstring | undefined-
    styleAdditional styleCSSProperties | undefined-