Skip to content
Myr

tree-skeleton.tsx

This file

Path

apps/web/src/features/code/tree-skeleton.tsx

16 lines · 659 bytes · TypeScript

Last changed by

Merge redesign into mainoscabrielbefore adoptioncaedd21

History of this file

Take it

Merge redesign into mainoscabrielbefore adoptioncaedd21

lines 1–16why, one step back
1import { Skeleton } from "../../components/ui/skeleton.tsx";
23const ROWS = ["w-32", "w-24", "w-40", "w-28", "w-36", "w-20", "w-44"] as const;45/** The file tree's shape while its body and its read are on the way, so the column never stands empty. */6export const TreeSkeleton = () => (7 <div aria-busy="true" className="flex min-h-0 flex-1 flex-col">8 <output className="sr-only">Reading the files</output>9 <div aria-hidden="true" className="flex flex-col gap-3 px-3">10 <Skeleton className="h-9 w-full sm:h-8" />11 {ROWS.map((width) => (12 <Skeleton className={`h-3 max-w-full ${width}`} key={width} />13 ))}14 </div>15 </div>16);