Badge

The ArcadiaBadge component renders a badge indicator that can be used standalone or attached to child content (such as an icon or avatar).

Basic Usage

<ArcadiaBadge Content="3" Color="danger">
    <span>Notifications</span>
</ArcadiaBadge>

<ArcadiaBadge Dot="true" Color="success">
    <span>Status</span>
</ArcadiaBadge>

<ArcadiaBadge Content="New" />

Parameters

ParameterTypeDefaultDescription
Contentstring?nullBadge text content (e.g., "3", "New"). Ignored when Dot is true.
Colorstring"primary"Badge color variant: "primary", "success", "danger", "warning".
DotboolfalseWhether the badge is rendered as a dot with no text.
ChildContentRenderFragment?nullThe element the badge attaches to.
Classstring?nullAdditional CSS class names.
Stylestring?nullInline CSS styles.

Accessibility

  • The badge indicator uses role="status" for live region announcements.
  • Provides an aria-label derived from Content, or “Status indicator” for dot badges, or “Badge” as a fallback.