apps/mantine.dev/src/pages/core/badge.mdx
import { BadgeDemos } from '@docs/demos'; import { Layout } from '@/layout'; import { MDX_DATA } from '@/mdx';
export default Layout(MDX_DATA.Badge);
Set the circle prop to reduce horizontal padding and make the badge width equal to its height:
Set fullWidth to make the badge span the full width of its parent element:
You can customize colors for Badge and other component variants by adding
variantColorResolver to your theme.
<Polymorphic defaultElement="div" changeToElement="a" component="Badge" withNext />