Floating Discount Pill
A production-scale, light + dark Floating Discount Pill component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add floating-discount-pillLive preview available in the gallery.
Usage
import { FloatingDiscountPill } from "@lerpa/ui";
<FloatingDiscountPill />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| discountCode | string | — | |
| percentage | number | — | |
| className | string | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.