Badge.Notification
A compact circular or pill-shaped count indicator used to surface unread items or activity on a parent element. Two axes: size (sm at 16pt, lg at 24pt) and type (text shows a numeric label, icon shows a small glyph). The background is always the error-status primary color, and the content is always on-dark.
Overview
A compact circular or pill-shaped count indicator used to surface unread items or activity on a parent element. Two axes: size (sm at 16pt, lg at 24pt) and type (text shows a numeric label, icon shows a small glyph). The background is always the error-status primary color, and the content is always on-dark.
The text variant.
Variants and states
| sm | lg | |
|---|---|---|
| text | 1 | 1 |
| icon |
Anatomy
- 1Container required
- 2Label.Number optional
- 3Icon optional instance swap
Measurements
Specs
Values resolved live from the token spine. Token names follow the active platform; each links to its page.
Properties
The component’s Figma API, the properties you set on an instance. Useful to designers in Figma and to engineers mapping it to code props.
Accessibility
Ensure a minimum 44 by 44pt tap target for any interactive instance, adding surrounding padding when the component itself is shorter. Keep text concise, and never rely on color alone to convey meaning; pair it with a label or an icon so the message survives for color-blind and low-vision users.
Reference: Apple Human Interface Guidelines and WCAG 2.5.5 Target Size.