MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / SkeletonLines

Function SkeletonLines

dashboard/lib/primitives.tsx:51–71  ·  view source on GitHub ↗
({
  count = 3,
  widths,
  className,
}: {
  count?: number;
  widths?: Array<string>;
  className?: string;
})

Source from the content-addressed store, hash-verified

49
50/** Muted, animated placeholder bars for loading states. */
51export function SkeletonLines({
52 count = 3,
53 widths,
54 className,
55}: {
56 count?: number;
57 widths?: Array<string>;
58 className?: string;
59}) {
60 return (
61 <div className={cn("tdp-skeleton", className)} aria-hidden="true">
62 {Array.from({ length: count }, (_, i) => (
63 <span
64 key={i}
65 className="tdp-skeleton-line"
66 style={widths && widths[i] ? { width: widths[i] } : undefined}
67 />
68 ))}
69 </div>
70 );
71}
72
73/** Big-value + small-label stat tile.
74 *

Callers

nothing calls this directly

Calls 2

cnFunction · 0.90
fromMethod · 0.45

Tested by

no test coverage detected