Badge
Show counts or unread notifications.
Basic usage
Set a count with count and pass children to attach the badge to content.
8
basic.tsx
Examples
Count rules
Counts above max show the limit with a plus sign. Zero is hidden unless showZero is set.
Over limit
99+
Show zero0
counts.tsx
Dot reminders
Set dot to indicate new content without a count. Use aria-label to describe the notification.
dot.tsx
Inside placement
Set placement="inside" to place the indicator inside the content. Leave room so it does not cover text or icons.
inside.tsx
API
Badge API
Configuration for badge counts, dot indicators and attachment placement.