NotificationBadge
Badge overlay for showing notification counts on icons or avatars.
Preview
Usage
import { NotificationBadge } from '@ramtt/ui'
<NotificationBadge count={5}>
<IconBell />
</NotificationBadge>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| count | number | — | Notification count |
| dot | boolean | false | Show dot instead of count |
| max | number | 99 | Maximum display count |
| children* | ReactNode | — | Element to decorate |