mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-14 18:44:05 +02:00
25 lines
609 B
TypeScript
25 lines
609 B
TypeScript
import type { ReactNode } from "react";
|
|
import "@shared/components/MetricStrip.css";
|
|
|
|
export interface MetricStripProps {
|
|
children: ReactNode;
|
|
className?: string;
|
|
}
|
|
|
|
/**
|
|
* Responsive grid wrapper for a row of {@link MetricCard}s — the prototype's
|
|
* "metric strip" (Home, Sources, Usage, Infrastructure all use it). Four-up on
|
|
* wide screens, two-up below 50rem.
|
|
*/
|
|
export function MetricStrip({ children, className }: MetricStripProps) {
|
|
return (
|
|
<div
|
|
className={["sui-metric-strip", className ?? ""]
|
|
.filter(Boolean)
|
|
.join(" ")}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|