mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-17 11:45:05 +02:00
Portal: full mock-driven surfaces, demonolithed components, backend-ready mocks (#6686)
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user