Indicator
The Indicator component renders a small dot or pill-shaped badge in the corner of a parent container — perfect for online status, unread counts, or "new" markers. Pass
label for text content (the dot auto-expands to fit multi-digit counts); use children for arbitrary custom content like icons.Examples
(5)Properties
(11)Playground
Basic usage
Use
Indicator to layer small notices on any container: position it at a corner, pair it with avatars for presence, or wrap children to show counters without building custom badges.Placements
Control positioning by combining the
placement prop (top/bottom + left/right) with offset to nudge the badge; add children inside Indicator when you need numeric or icon content.Sizes
Set the
size prop to any token (xs–3xl) for theme-aligned dots, or provide a raw number when you need a bespoke diameter for your badge.Statuses
Map semantic states (online, idle, busy) to palette colors and cap large notification counts by rendering text inside
Indicator—perfect for presence chips or inbox badges.Labels & counts
Pass
label to render a count or short text inside the indicator — the dot expands to a pill so multi-digit values fit. labelProps accepts any <Text> props for fonts, weights, etc. For arbitrary custom content (icons, status markers), use children instead.Scan to open this page on your phonereact-ui-library.com/components/Indicator
</>
react-ui-library
100+ accessible, themeable components that work seamlessly across iOS, Android, and Web.
A Platform Blocks product.
Quick Links
Resources