PageSkeleton
A whole console page while it loads: the header, a row of numbers and a table, in the page's own boxes.
import { PageSkeleton } from '@sypnia/ui/react'
A console page loading
Code
import { PageSkeleton } from '@sypnia/ui/react';
// A whole console page while it loads: header, numbers and a table, in their real boxes.
export default function Console() { return <div aria-busy="true"><PageSkeleton stats={4} rows={4} /></div>; } When to use it
Use it when
- The first load of a console page, inside AppShell.
- Set
statsandcolumnsto match the real page.
Do not use it when
- Pages with a different layout: compose their own skeleton from the pieces' skeletons.
For everyone
- Mark the main region
aria-busywhile it shows; the skeleton itself is hidden.
Props
| PageSkeleton | Type | Default |
|---|---|---|
columns | number | 5 |
rows | number | 6 |
stats | number | 4 |