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/badge.md.
v0.0.57
  • English
  • Badge

    Data Display@rockshin/tao-ui

    Shows counts, compact status indicators and ribbons.

    This native tao-ui component follows the public API of Ant Design 6.7.0. Appearance, theme tokens and Semantic DOM customization belong to tao-ui; configure themes with TaoProvider.

    Badge follows the 6.7.0 count/status API; colors and Ribbon surfaces use tao-ui tokens. Count changes update directly.

    When to use

    Attach counts to a relevant control; include text when communicating status.

    Examples

    Counts, zero and overflow

    A5B0C99+D120
    TSX

    Change a count

    5
    TSX

    Dot and small indicators

    8
    TSX

    Status labels

    SyncedProcessingNeeds reviewFailedIdle
    TSX

    Custom color and offset

    ALNewCustom status
    TSX

    Ribbon placement

    Team plan
    Shared workspace and collaboration.
    Featured
    New workflow
    Try the updated workflow.
    Preview
    TSX

    API

    Badge

    PropertyDescriptionTypeDefault Value