API reference

Dashboards

The data of the four dashboards and the label helpers they use.

Mocks store semantic ids; these composables turn them into translated labels.

useAnalyticsKpis()

kpiById(id) returns the props of an analytics KPI card.

composables/useAnalyticsKpis.ts
useAnalyticsKpis(): { kpiById: (id: KpiId) => { label: any; icon: string | undefined; value: number; previousValue: number | undefined; format: KpiValueFormat | undefined; series: { name: any; data: …
ReturnskpiById

useAnalyticsLabels()

Translates the ids of the mocks: KPIs, devices, plans, weekdays, months and categories.

composables/useAnalyticsLabels.ts
useAnalyticsLabels(): { kpiLabel: (id: KpiId) => any; deviceLabel: (id: DeviceId) => any; planLabel: (id: PlanId) => any; weekdayLabel: (id: WeekdayId) => any; monthLabel: (id: MonthId) => any; finance…
ReturnskpiLabeldeviceLabelplanLabelweekdayLabelmonthLabelfinanceSeriesLabelkpiCategoryLabel

useAnalyticsActivity()

The recent activity of the analytics dashboard.

composables/useAnalyticsActivity.ts
useAnalyticsActivity(): { activity: any; }
Returnsactivity

useEcommerceDashboard()

Data, KPIs and chart series of the store dashboard.

composables/useEcommerceDashboard.ts
useEcommerceDashboard(): { data: any; kpi: (id: EcommerceKpiId) => { label: any; icon: any; value: any; format: any; series: { name: any; data: any; }[]; previousSeries: any; categories: any; change: any;…
ReturnsdatakpitopProductslowStocksalesSeriessalesCategorieschannelCategories

useFinanceDashboard()

Data, KPIs and chart series of the finance dashboard.

composables/useFinanceDashboard.ts
useFinanceDashboard(): { data: any; kpi: (id: FinanceKpiId) => { label: any; icon: any; value: any; format: any; series: { name: any; data: any; }[] | undefined; previousSeries: any; categories: any; ch…
ReturnsdatakpicashFlowSeriescashFlowCategoriesexpenseCategories

useSaasDashboard()

MRR, movements, plans and funnel of the SaaS dashboard.

composables/useSaasDashboard.ts
useSaasDashboard(): { data: any; kpi: (id: SaasKpiId) => { label: any; icon: any; value: any; format: any; series: { name: any; data: any; }[]; previousSeries: any; categories: any; change: any; }; m…
ReturnsdatakpimrrSeriesmrrCategoriesmovementSeriesmovementCategoriesplanCategoriesfunneloverallConversion

useFormPlayground()

The schema-driven playground of the forms overview.

composables/useFormPlayground.ts
useFormPlayground(): { isOpen: any; layout: any; stepsOrientation: any; values: any; sections: any; open: (next?: FormLayout, orientation?: FormStepsOrientation) => void; close: () => void; }
ReturnsisOpenlayoutstepsOrientationvaluessectionsopenclose
© 2026 melsami UI.
Developer documentation for melsami UI.