Badge

Playground

Properties

Size
Shape
Leading icon
Trailing icon
Background
Text

Content

Label

Usage

Use Badge for a short category or status label. It is not a button. Set colors with className or style. In Playground, use the picker or a HEX value to set the background and text colors. The background defaults to the primary color, and your chosen colors are applied to Badge's style.

'use client';
import { Badge } from '@mbsw/ui';

export default function Example() {
  return (
    <Badge size="md" shape="square">
      {"Text"}
    </Badge>
  );
}

The Playground Code tab includes the full example with your current settings. See Installation for the CSS imports.

Composition