Skip to content

useBadge API

API reference docs for the useBadge hook. Learn about the input parameters and other APIs of this exported module.

Demos

For examples and details on the usage of this React hook, visit the demo pages:

Import

import useBadge from '@mui/base/useBadge';

Parameters

NameTypeDefaultDescription
badgeContentReact.ReactNode
invisibleboolean
maxnumber
showZeroboolean

Return value

NameTypeDefaultDescription