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
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
loadingon 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
| SkeletonTable | Type | Default |
|---|---|---|
columns | number | |
dense | boolean | |
pagination | boolean | |
rows | number |