Skip to content

Counter Badge

The CounterBadge component is used to highlight and display numerical values or simple count indicators. It is designed to be non-interactive (read-only) and supports different color themes.

Playground

Installation

import { CounterBadge } from '@harnessio/ui/components'
// ...
// Default counter badge
<CounterBadge>1</CounterBadge>
// Info theme counter badge
<CounterBadge theme="info">42</CounterBadge>
// Success theme counter badge
<CounterBadge theme="success">10</CounterBadge>
// Danger theme counter badge
<CounterBadge theme="danger">99+</CounterBadge>