Hooks
useDashboard
Add a dashboard to your app, styled with your existing UI components.
Used alongside useDashboardReport for fully customizable dashboards. Below is an example with shadcn showing fully custom styling.
App.tsx
The name of the dashboard to load
Whether the dashboard data is currently loading
The dashboard sections containing reports, organized by section name
Available filters for the dashboard. These are typically rendered with html select or similar UI components.
applyFilters
(filters: Array<{ label: string; value: string | string[] | { startDate?: Date; endDate?: Date }; } | Filter>) => void
Function to apply filters to the dashboard