function createStatCardRow
createStatCardRow(
stats: StatCardProps[],
options?: { gap?:
"sm"
| "md"
| "lg"
; }
,
): HTMLDivElement

Create a row of stat cards

Examples

Example 1

const stats = createStatCardRow([ { value: 6, label: 'Total Checks' }, { value: 6, label: 'Healthy', variant: 'success' }, { value: 0, label: 'Alerts', variant: 'error' }, ]);

Parameters

optional
options: { gap?:
"sm"
| "md"
| "lg"
; }

Return Type

HTMLDivElement

Usage

import { createStatCardRow } from ".";