🎯
StatsCard
Metric display card with trend indicators
90%
Code Reduction
200
Traditional Lines
20
Factory Lines
6
Frameworks
Code Example
const RevenueCard = ui.createStatsCard({
value: monthlyRevenue,
label: 'Monthly Revenue',
trend: 'up',
change: 15.3,
sparkline: revenueHistory,
icon: '💰'
});Usage
1. Install the package
npm install @vladimirdukelic/revolutionary-ui-factory2. Import and setup
import { setup } from '@vladimirdukelic/revolutionary-ui-factory';
const ui = setup();3. Create your component
Use the code example above to create your StatsCard component with 90% less code!
Features
- ✓Animated counters
- ✓Trend arrows
- ✓Sparkline support
- ✓Custom icons
- ✓Loading states
Supported Frameworks
React✓
Vue✓
Angular✓
Svelte✓
Solid✓
preact✓