Stat Row
Key/value stat rows.
import { StatRow, StatRowLabel, StatRowValue,} from "@/registry/new-york/items/manpowerhub-stat-row/components/stat-row";export function ManpowerhubStatRowBasic() { return ( <div className="w-full max-w-xs rounded-lg border border-border bg-card p-3"> <StatRow> <StatRowLabel>Site</StatRowLabel> <StatRowValue>Site Alpha</StatRowValue> </StatRow> <StatRow> <StatRowLabel>Client</StatRowLabel> <StatRowValue>AlMansoori</StatRowValue> </StatRow> </div> );}Installation
Section titled “Installation”This installation provides support for all official Shadcn icon libraries. The component is otherwise identical to the non-experimental installation.
Icon support is experimental and may not be fully stable since it uses internal Shadcn APIs.
This component relies on other items which must be installed first.
Copy and paste the following code into your project.
components/ui/stat-row.tsx
import * as React from "react";
import { cn } from "@/lib/utils";
function StatRow({ className, ...props }: React.ComponentProps<"div">) { return ( <div data-slot="stat-row" className={cn( "flex items-center justify-between border-b border-[var(--color-border-subtle)] py-2.25 last:border-b-0", className, )} {...props} /> );}
function StatRowLabel({ className, ...props }: React.ComponentProps<"span">) { return ( <span data-slot="stat-row-label" className={cn("text-[12.5px] text-[var(--text-2)]", className)} {...props} /> );}
function StatRowValue({ className, ...props }: React.ComponentProps<"span">) { return ( <span data-slot="stat-row-value" className={cn("text-[12.5px] font-semibold text-foreground", className)} {...props} /> );}
export { StatRow, StatRowLabel, StatRowValue };Update the import paths to match your project setup.
Install the ManpowerHub theme first, then add this stat row:
npx shadcn@latest add @woxcn/manpowerhub-stat-row