ConstBadge configuration (see MUI docs for all available props)
Badge component with content and badge content shown
// Basic usage
<Badge badgeContent={4}>
<MailIcon />
</Badge>
// With custom color
<Badge
badgeContent={100}
color="secondary"
max={99}
>
<NotificationsIcon />
</Badge>
// With custom styling
<Badge
badgeContent={4}
sx={{
'& .MuiBadge-badge': {
backgroundColor: 'custom.main'
}
}}
>
<IconButton>
<MessageIcon />
</IconButton>
</Badge>
Material-UI Badge component for displaying count badges on content.
Wraps Material-UI's Badge to display notification badges, counters, or status indicators on icons, buttons, or other UI elements. All Material-UI Badge props are supported and passed through directly. Useful for showing unread counts, status notifications, or highlighting important information.