Skip to content

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'

On this page
  1. A console page loading
  2. When to use it
  3. For everyone
  4. Props

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 stats and columns to 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-busy while it shows; the skeleton itself is hidden.

Props

PageSkeletonTypeDefault
columns number 5
rows number 6
stats number 4
  1. A console page loading
  2. When to use it
  3. For everyone
  4. Props

    Search pages, sections and terms