Skip to content

SkeletonTable

Rows of a table that is loading, in the table's own boxes. On phones it becomes cards, like the real table.

import { SkeletonTable } from '@sypnia/ui/react'

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

A table loading

Code
import { SkeletonTable } from '@sypnia/ui/react';

// A table before its columns are known; on a phone it becomes cards, like the real one.
export default function Rows() { return <SkeletonTable columns={4} rows={4} pagination />; }

When to use it

Use it when

  • Before the columns of a table are known.
  • When the columns are known, use loading on the Table instead.

Do not use it when

  • Spinners or «Loading…»: the skeleton has the shape of what comes.

For everyone

  • It is hidden from screen readers; the region that waits is aria-busy.

Props

SkeletonTableTypeDefault
columns number
dense boolean
pagination boolean
rows number
  1. A table loading
  2. When to use it
  3. For everyone
  4. Props

    Search pages, sections and terms