Loading Table

A skeleton placeholder for data tables with configurable rows and columns, a header row and aria-busy so assistive tech knows content is loading.

src/registry/ui/loading-table.tsx/r/loading-table.json

Installation#

bash
npx shadcn@latest add @minidev/loading-table

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/loading-table.json

Usage#

tsx
import { LoadingTable } from "@/components/ui/loading-table"

export function Example() {
  return (
    <LoadingTable className="max-w-md" rows={4} cols={3} />
  )
}

API reference#

LoadingTable props
PropTypeDefault
rowsnumber5
colsnumber4
classNamestring-

Dependencies#

npm

React only

Built from

Examples#

All data table components

Learn more