Tally UI

DiscountBadge

Small colored badge that displays a discount or sale label

Import

import { DiscountBadge } from '@tallyui/components';

Usage

<DiscountBadge label="20% OFF" />

A compact, self-sizing badge with a sale-colored background and bold text. Useful for highlighting discounts on cart lines or product cards.

Props

PropTypeDefaultDescription
labelstringrequiredText displayed inside the badge
classNamestringOverride container styles

Live demo

On this page