NotificationCircle
NotificationCircle is a type of badge. It can be used to display numbers (e.g. the number of notifications or new content). If the supplied number exceeds 9, NotificationCircle displays “9+” instead of going into double digits. It can also display icons to act as an indicator.
Examples
When placing the NotificationCircle badge inline, avoid icons, as they may cause the badge to be confused with a button.
There may be situations where it makes sense to deviate from the standard placement options. Use the offset props to manually position NotificationCircle.
horizontalOffset
sets theright
CSS attribute whenplacement
istopRight
and theleft
attribute when placement istopLeft
.verticalOffset
sets thetop
CSS attribute.
NotificationCircle exports
You can import this module like so:
import {Badge} from 'baseui/badge'
It exports the following components or utility functions: