React Badge - Argon

Our small count and labelling component. It uses MUI Badge in base and you can use all of the props from MUI Badge for the ArgonBadge component.


The below codes are editable and you can modify them the way you want directly from your browser, please use the green button or the ctrl + s to save the changes.

Demo

// Argon Dashboard 2 MUI Components import Badge from "components/Badge"; Badge

Props Information

NameTypeDefaultDescription
color'primary''secondary''info''success''warning''error''light''dark'infoChange the ArgonBadge background color.
variant'gradient''contained'gradientChange the ArgonBadge background type.
size'xs''sm''md''lg'smChange the ArgonBadge size.
badgeContent*nodeUse to pass node or content inside the ArgonBadge, its the only required prop.
circularboolfalseMakes the ArgonBadge shape circular.
indicatorboolfalseTurn the ArgonBadge into a small indicator.
borderboolfalseCreate a white border around the ArgonBadge.
containerboolfalseTurn the ArgonBadge into a container, its helpful for using only ArgonBadge without any other element.
MUI PropsYou can pass all of the MUI Badge props for the ArgonBadge as well.

Sizes

// Argon Dashboard 2 MUI Components import Badge from "components/Badge"; Badge Badge Badge Badge

Variants

// Argon Dashboard 2 MUI Components import Badge from "components/Badge"; Gradient Contained