Skip to main content

Skeletons

All skeletons live in src/lib/ui/skeletons/. They are used in Next.js loading.tsx files and Suspense boundaries to show structural placeholders while data is fetched. None accept props except GridSkeleton.

ComponentFileMatches
ActivitySkeletonactivitySkeleton.tsxFull activity detail page — centred card with a header block and several content rows.
Art30DeclarationSkeletonart30DeclarationSkeleton.tsxArticle 30 GDPR declaration document — page header, subtitle, divider, and multiple body sections.
ChipSkeletonchipSkeleton.tsxSingle chip — 80 × 20 px rounded rectangle. Used inline wherever a chip is expected while loading.
DocumentSkeletondocumentSkeleton.tsxGeneric document/article layout — max-width container with multiple text lines and section dividers.
GridSkeletongridSkeleton.tsxCard grid — repeats a Paper + Card skeleton block number times. Pass number to match the expected item count.
TemplateEditorSkeletontemplateEditorSkeleton.tsxTemplate editor — two-column layout with a title, a left-side editor area, and a right-side preview/info panel.