Skip to main content

Import

Usage

With label

Variants

On elements

With buttons

Online status

Notification count

Custom positioning

Accessibility

API reference

Indicator

'accent' | 'warning' | 'danger' | 'success' | 'neutral'
default:"'accent'"
The color variant of the indicator.
string
Optional text label to display inside the indicator. When provided, the indicator shows as a badge with the label text.
React.ReactNode
The element to position the indicator relative to. If not provided, the indicator renders independently.
string
Accessible label for screen readers. If not provided, defaults to the label prop or a generated label based on the variant.
string
Additional CSS class names to apply to the indicator.