Develop ultra fast with Prismane 🎉

Badge API

Learn about the Badge component's props and CSS classes.

Import

import { BadgeProps } from "@prismane/core";

Props

Badge extends Circle component's props.

NameTypeDescriptionDefault
labelReactNodeThe label element of the badge.0
positionPrismanePositions The position of the badge.top-start
colorPrismaneColors The color of the badge.-
sizePrismaneBreakpoints The size of the badge.-

CSS

Badge extends Circle component's CSS classes.

RuleGlobal ClassDescription
root.PrismaneBadge-rootThe wrapper box of the container.
root.PrismaneBadge-root-{position}The wrapper box of the container based on the position.
root.PrismaneBadge-root-{color}The wrapper box of the container based on the color.
root.PrismaneBadge-root-{size}The wrapper box of the container based on the size.