بنقرة واحدة
add-dashboard-card
Add a new metric card to the dashboard with proper styling and components
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Add a new metric card to the dashboard with proper styling and components
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Add a new Recharts visualization with theme-aware styling to the dashboard
Add Lucide React icons to components following project conventions
Add responsive layouts following mobile-first design principles with Tailwind CSS
Add a new shadcn/ui component to the project following the New York style variant
Add or customize theme colors in the CSS custom properties system
Create a new dashboard page following Next.js 15 App Router conventions
استنادا إلى تصنيف SOC المهني
| name | add-dashboard-card |
| description | Add a new metric card to the dashboard with proper styling and components |
When adding a new dashboard metric card to this Next.js 15 dashboard application:
Choose the appropriate card component based on the metric type:
DashboardCard for basic metrics with custom contentDashboardStatCard for statistics with trend indicators (percentage changes)DashboardChartCard for metrics that include embedded chartsImport the required components:
import { DashboardCard, DashboardStatCard } from "@/components/DashboardCards";
import { IconName } from "lucide-react"; // For stat cards
Add the card data to the appropriate data array:
DashboardCharts.tsx, add to the stats array:
{
title: "Metric Name",
value: "Value with units",
change: "+X.X%",
changeType: "positive" | "negative",
icon: IconName,
}
Follow styling conventions:
hsl(var(--border)), hsl(var(--muted-foreground))cn() utility from @/lib/utils for conditional classesMaintain the grid layout:
grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-6Type safety:
as const for union types like changeType// In DashboardCharts.tsx, add to stats array:
{
title: "Monthly Revenue",
value: "$12,345",
change: "+15.3%",
changeType: "positive" as const,
icon: DollarSign,
}
<DashboardCard title="Custom Metric" value="142">
<MiniLineChart data={chartData} />
</DashboardCard>
src/components/DashboardCards.tsxsrc/components/DashboardCharts.tsxsrc/lib/charts.tsxadd-chartadd-shadcn-component