badge
v4.9.10arrow_drop_downThe anchor of the badge.
Wrapped shape the badge should overlap.
The content rendered within the badge.
The badge will be added relative to this node.
The color of the component. It supports those theme colors that make sense for this component.
If true
, the badge will be invisible.
Max count to show.
Controls whether the badge is hidden when badgeContent
is zero.
The variant to use.
Name | Type | Description |
---|---|---|
anchorOrigin | {"horizontal":"'left' | 'right'","vertical":"'bottom' | 'top'"} | The anchor of the badge. |
badgeContent | node | The content rendered within the badge. |
children | node | The badge will be added relative to this node. |
classes | object | Override or extend the styles applied to the component. See CSS API below for more details. |
className | string | |
color | 'default' | 'error' | 'primary' | 'secondary' | The color of the component. It supports those theme colors that make sense for this component. |
component | elementType | The component used for the root node. Either a string to use a DOM element or a component. |
invisible | bool | If |
max | number | Max count to show. |
overlap | 'circle' | 'rectangle' | Wrapped shape the badge should overlap. |
showZero | bool | Controls whether the badge is hidden when |
variant | 'dot' | 'standard' | The variant to use. |