Skip to content
Myr

skeleton.tsx

This file

Path

apps/web/src/features/shared/skeleton.tsx

31 lines · 927 bytes · TypeScript

Last changed by

Merge build/comments-web-features into mainoscabrielbefore adoption74bfc72

History of this file

Take it

Draw every list and subject from one row, one status line, one family fan and one set of fact blocksoscabrielbefore adoption886b726

lines 1–31why, one step back
1import { Skeleton } from "../../components/ui/skeleton.tsx";
23export const RowSkeleton = () => (4 <div5 aria-hidden="true"6 className="border-rule flex h-16 flex-col justify-center gap-2.5 border-b pl-8"7 >8 <Skeleton className="h-3 w-full max-w-[28rem]" />9 <Skeleton className="h-2.5 w-full max-w-[14rem]" />10 </div>11);1213export const FactsSkeleton = ({14 labels,15}: {16 readonly labels: readonly string[];17}) => (18 <div aria-busy="true" className="flex flex-col">19 <output className="sr-only">Reading from the platform</output>20 {labels.map((label) => (21 <div22 className="border-rule flex flex-col gap-2 border-t py-3 first:border-t-0 first:pt-0"23 key={label}24 >25 <p className="text-label text-muted-foreground">{label}</p>26 <Skeleton className="h-3 w-full max-w-[12rem]" />27 <Skeleton className="h-3 w-full max-w-[8rem]" />28 </div>29 ))}30 </div>31);