Live Stock Counter
A production-scale, light + dark Live Stock Counter component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add live-stock-counterLive preview available in the gallery.
Usage
import { LiveStockCounter } from "@lerpa/ui";
<LiveStockCounter />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| initialStock | number | — | |
| lowStockThreshold | number | — | |
| criticalStockThreshold | number | — | |
| minRandomInterval | number | — | |
| maxRandomInterval | number | — | |
| simulated | boolean | — | |
| onStockEmpty | () => void | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.