v0 prompt

Analytics Dashboard

Data visualization dashboard with KPI cards, charts, data table, and date range filtering.

Build an analytics dashboard for {{dashboard_name}}.

## Purpose: {{purpose}}
## Key Metrics to Show: {{metrics}}
## Time Range: filterable by {{time_ranges}}
## Color scheme: {{colors}}

### Dashboard Layout

**Header**
Dashboard title + subtitle. Date range selector (last 7/30/90 days, custom). Export button.

**KPI Cards Row (top)**
4 stat cards, each showing: metric name + current value + trend vs. previous period (↑↓ with %).
Metrics: {{kpi_metrics}}
Cards use soft colored backgrounds matching trend (green up / red down).

**Main Chart Area (2-column)**
Left (wider): Primary trend chart — {{primary_chart_type}} showing {{primary_metric}} over time.
Right: Secondary breakdown — {{secondary_chart_type}} showing {{breakdown_metric}}.

**Secondary Charts Row**
3 smaller charts: {{small_chart_metrics}}

**Data Table**
Sortable, filterable table showing raw data.
Columns: {{table_columns}}
Pagination: 25 rows per page.
Row-level sparkline for trend column.

**Sidebar (collapsible)**
Filters panel: filter by {{filter_options}}.

### Technical Requirements
- Recharts or Visx for data visualization
- TanStack Table for data table
- DatePicker for time range selection
- Loading skeleton states for all data
- Empty states with helpful messaging
- Responsive: table becomes scrollable on mobile
- Dark mode compatible with muted chart colors

Fill in: {{dashboard_name}}, {{purpose}}, {{metrics}}, {{time_ranges}}, {{colors}}, {{kpi_metrics}}, {{primary_chart_type}}, {{primary_metric}}, {{secondary_chart_type}}, {{breakdown_metric}}, {{small_chart_metrics}}, {{table_columns}}, {{filter_options}}. In Loopy you fill these in a form and copy the finished prompt in one click.