Badge

Component for short notes with one color as status messages

A <Badge> is a content component. This component can be used to reflect status messages via a short note and a color. The content of a badge can be arbitrary, but it is preferred to use a string and/or a icon.

Import

import { Badge } from '@marigold/components';

Appearance

PropertyTypeDescription
variantdefault | inverted | success | info | warning | errorThe available variants of this component.
size-The available sizes of this component.

Props

Sorry! There are currently no props available.

Examples

Info Badge

In this example we have the <Badge> component that has been given the variant info and a string.

new

Badge with an Icon

In this example, the <Badge> component gets an icon component.

Badge with variant

Here you can see the <Badge> component with variant dark.

vor kurzem aktualisiert