Badge
Compact ARCUI dot or label badge for supplementary status, count, and navigation metadata.
Badge has two mutually exclusive public modes: a decorative dot and a compact text/number label.
Usage
import { Badge } from "react-native-arc-ui";
<Badge />
<Badge label="New" />The public type is discriminated: dot-only sizing props and label text-color props cannot be mixed accidentally.
Dot badge
<Badge /> and <Badge dot /> both render dot mode because label presence is the actual semantic discriminator.
<Badge />
<Badge dot size={8} />size controls dot width/height and ARCUI resolves a circular radius from that final size.
Malformed per-instance sizes fall back safely to tokens.sizings.badge.dotSize.
Label badge
<Badge label="Beta" />
<Badge label={3} />
<Badge label={0} />label accepts string | number. Numeric 0 and an empty string are still label-mode values because only label === undefined selects dot mode.
Label geometry grows with ARCUI-managed font scaling so larger accessibility text does not get clipped by a fixed badge height.

Semantic tones and colors
Use tone for meaning: neutral, info, success, warning, or danger. The default tone remains danger for backward-compatible badge emphasis.
<Badge tone="info" />
<Badge tone="success" label="Ready" />
<Badge tone="warning" label={3} />Use colors when a specific instance needs a color beyond the semantic palette:
<Badge colors={{ background: "rgba(52,120,246,1)" }} />
<Badge
label="Beta"
tone="neutral"
colors={{
background: {
dark: "rgba(129,85,231,1)",
light: "rgba(52,120,246,1)",
},
text: "rgba(255,255,255,1)",
}}
/>Color resolution is colors → matching tone → Badge tokens. A string stays fixed in both themes; a complete { light, dark } pair animates across themes. Dot badges accept colors.background only; colors.text is available only in label mode.

Native View surface
Badge inherits ViewProps apart from its owned children contract. Use native style, accessibility props, pointer events, and layout props as normal.
For label mode, style applies to the badge container; typography is ARCUI-owned rather than supplied as arbitrary child text.
Testing
With testID="status-badge":
dot badge: status-badge
label badge: status-badge
status-badge-textThe -text descendant exists only in label mode.
For provider setup and react-native-arc-ui/testing, see Testing.
API Reference
Dot Badge
Also inherits: Omit<ViewProps, "children">
| Prop | Type | Default | Description |
|---|---|---|---|
| tone? | TBadgeTone | "danger" | Semantic Badge palette. |
| dot? | true | — | — |
| size? | number | — | Diameter of the dot. Falls back to tokens.sizings.badge.dotSize. |
| colors? | Readonly<TDotBadgeColors> | — | Per-instance ARCUI-owned color overrides. Dot Badges own only a background color. |
Label Badge
Also inherits: Omit<ViewProps, "children">
| Prop | Type | Default | Description |
|---|---|---|---|
| tone? | TBadgeTone | "danger" | Semantic Badge palette. |
| dot? | false | — | — |
| label | string | number | required | — |
| colors? | Readonly<IBadgeColors> | — | Per-instance ARCUI-owned color overrides. |
Per-instance color slots: IBadgeColors
| Prop | Type | Default | Description |
|---|---|---|---|
| background? | TThemeColor | — | Badge surface color. |
| text? | TThemeColor | — | Label color for label Badges. |
Generated from the ARCUI 2.0.0 TypeScript source snapshot. Native inherited props remain available through the referenced React Native surface.
Generated from the ARCUI 2.0.0 TypeScript source snapshot. Native inherited props remain available through the referenced React Native surface.
Motion
Badge does not animate semantic state of its own. Theme-aware background/text colors interpolate with ARCUI theme progress, and label dimensions/font size follow the central font-scale SharedValue.
Performance
Badge is intentionally small: no React state, no timers, no gesture lifecycle. Theme/font-scale interpolation stays within ARCUI's shared visual infrastructure.
Accessibility
Badge is supplementary metadata. Decide whether it should be independently exposed or incorporated into surrounding accessible text based on the product meaning.
A label badge contains native Text content; a dot has no inherent spoken meaning. Do not rely on a bare dot to communicate a critical state to screen-reader users.
Theming
Relevant token areas include:
colors.*.badge
sizings.badge
radius.badge
typography.badge
typography.maxFontSizeMultiplier
