DiscountBadge
DiscountBadge renders a compact sale-colored label for discounts on cart lines or product cards, with optional container styles.
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
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | required | Text displayed inside the badge |
className | string | — | Override container styles |