Scan your whole stack
Are you using @xsolla/xui-badge?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.234.0
@xsolla/xui-badge was last scanned on 23 Nov 2026 at version 0.234.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.234.0 LATEST | 23 Nov 2026 | No rules fired |
| 0.233.0 | 20 Nov 2026 | No rules fired |
| 0.232.1 | 20 Nov 2026 | No rules fired |
| 0.232.0 | 18 Nov 2026 | Not shown |
| 0.231.0 | 16 Nov 2026 | Not shown |
Findings for v0.234.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.234.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
A cross-platform React badge component for counts, status dots, and small labels. Sizes xs and sm render as content-less dots; larger sizes accept text and icons.
A small indicator dot that signals a new, active, or attention-requiring state. Renders as a filled circle or square at a very small fixed size, with optional content (icon or label) and an optional stroke border. Positioned absolutely over another element — most commonly on an Avatar, Icon button, or navigation icon. Unlike Tag, Badge carries no label by default and communicates through colour, shape, and position alone.
npm install @xsolla/xui-badge
import { Badge } from "@xsolla/xui-badge";
import * as React from "react";
import { Badge } from "@xsolla/xui-badge";
export default function QuickStart() {
return <Badge tone="alert">5</Badge>;
}
<Badge>| Prop | Type | Default | Description |
|---|---|---|---|
testID |
string |
— | Test ID for testing frameworks. On web this renders as data-testid; on React Native it renders as testID. |
children |
ReactNode |
— | Badge content. Numeric values greater than 999 are clamped to 999+. Ignored for xs/sm sizes. |
icon |
ReactNode |
— | Icon rendered alongside content. Ignored for xs/sm sizes. |
size |
"xl" \| "lg" \| "md" \| "sm" \| "xs" |
"md" |
Badge size. xs and sm are dot-only. |
tone |
"primary" \| "secondary" \| "brand" \| "brandExtra" \| "success" \| "warning" \| "alert" \| "neutral" |
"alert" |
Colour tone. |
square |
boolean |
false |
Use a small square radius (4px) instead of pill/circle. |
showStroke |
boolean |
false |
Render a 1px border in the page background colour, useful when overlaid on imagery. |
aria-label |
string |
— | Accessible label. |
aria-hidden |
boolean |
auto | Defaults to true for content-less dots without aria-label. |
Inherits ThemeOverrideProps (themeMode, themeProductContext).
import * as React from "react";
import { Badge } from "@xsolla/xui-badge";
export default function BadgeTones() {
return (
<div style={{ display: "flex", gap: 16 }}>
<Badge tone="primary">P</Badge>
<Badge tone="secondary">S</Badge>
<Badge tone="brand">B</Badge>
<Badge tone="brandExtra">X</Badge>
<Badge tone="success">9</Badge>
<Badge tone="warning">!</Badge>
<Badge tone="alert">3</Badge>
<Badge tone="neutral">N</Badge>
</div>
);
}
import * as React from "react";
import { Badge } from "@xsolla/xui-badge";
export default function BadgeSizes() {
return (
<div style={{ display: "flex", gap: 16, alignItems: "center" }}>
<Badge size="xs" tone="alert" aria-label="Unread" />
<Badge size="sm" tone="alert" aria-label="Unread" />
<Badge size="md" tone="alert">
5
</Badge>
<Badge size="lg" tone="alert">
5
</Badge>
<Badge size="xl" tone="alert">
5
</Badge>
</div>
);
}
import * as React from "react";
import { Badge } from "@xsolla/xui-badge";
import { Heart } from "@xsolla/xui-icons-base";
export default function BadgeWithIcon() {
return (
<Badge tone="warning" icon={<Heart />}>
Featured
</Badge>
);
}
import * as React from "react";
import { Badge } from "@xsolla/xui-badge";
export default function SquareBadge() {
return (
<Badge tone="brand" square>
NEW
</Badge>
);
}
import * as React from "react";
import { Badge } from "@xsolla/xui-badge";
export default function NotificationCount() {
const [count, setCount] = React.useState(12);
return (
<button
onClick={() => setCount((c) => c + 1)}
style={{ position: "relative" }}
>
Inbox
<span style={{ position: "absolute", top: -8, right: -8 }}>
<Badge tone="alert">{count}</Badge>
</span>
</button>
);
}
import * as React from "react";
import { Badge } from "@xsolla/xui-badge";
export default function BadgeStroke() {
return (
<div style={{ background: "#222", padding: 16 }}>
<Badge tone="brand" showStroke>
Pro
</Badge>
</div>
);
}
role="status" so changes are announced politely.xs, sm) without an aria-label default to aria-hidden="true".aria-label for badges that convey state visually only (such as a coloured dot beside an avatar).Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.