Examples
- Basic Usage
- With Icons
- Pill Style

Simple badges with text content.
Properties
Required
The text content of the badge.
Content
An optional icon to display before the label. Use
PhosphorIcons.yourIconName
.Whether the icon should continuously rotate. Useful for loading states or activity indicators.
Styling
The color of the badge. This affects the label, icon, and background colors.
Whether to use fully rounded corners (pill style) instead of the default small border radius.
Whether to display as a minimal indicator dot instead of showing label and icons. When true, only a small colored circle is shown.
Best Practices
- Use
isIndicator: true
for subtle status indicators where the context is clear. - Combine icons like
PhosphorIcons.spinner
orPhosphorIcons.circleNotch
withisIconRotating: true
for loading or syncing states.
Integration Notes
- NeoBadge smoothly morphs between label/icon display and indicator dot when
isIndicator
changes.