Badge
The Badge component generates a small label that is attached to its child element.
useBadge API
Import
import { useBadge } from '@mui/base/useBadge';
// or
import { useBadge } from '@mui/base';Value to be displayed in the badge. If badgeContent is greater than max, it will return max+.
Type:React.ReactNode