import type { Meta, StoryObj } from '@storybook/react';
import { StatCard } from './StatCard';
import { Activity, Music, Users, DollarSign } from 'lucide-react';
const meta = {
title: 'Components/Dashboard/StatCard',
component: StatCard,
tags: ['autodocs'],
decorators: [
(Story) => (
),
],
} satisfies Meta;
export default meta;
type Story = StoryObj;
export const Default: Story = {
args: {
label: 'Total Plays',
value: '1.2M',
icon: ,
trend: '+12.5',
color: 'cyan',
sparklineData: [40, 30, 45, 50, 60, 75, 80],
},
};
export const NegativeTrend: Story = {
args: {
label: 'Revenue',
value: '$432.50',
icon: ,
trend: '-5.2',
color: 'red',
sparklineData: [80, 75, 70, 65, 60, 55, 50],
},
};
export const NoTrend: Story = {
args: {
label: 'Followers',
value: '5,432',
icon: ,
color: 'magenta',
sparklineData: [10, 20, 15, 25, 30, 40, 50],
},
};