BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/tablecn/data-grid-skeleton

Data Grid Skeleton

tablecn/data-grid-skeleton
FreeComponent

A composable skeleton component for the data grid with toolbar and grid parts

Install it

npx shadcn@latest add https://tablecn.com/r/data-grid-skeleton.json

Source

src/components/data-grid/data-grid-skeleton.tsxtablecn.com/r/data-grid-skeleton.json
1import type * as React from "react";
2import { Skeleton } from "@/components/ui/skeleton";
3import { cn } from "@/lib/utils";
4
5interface DivProps extends React.ComponentProps<"div"> {}
6
7function DataGridSkeleton({ className, ...props }: DivProps) {
8 return (
9 <div
10 data-slot="grid-skeleton"
11 className={cn(
12 "flex h-[calc(100dvh-(--spacing(16)))] w-full flex-col gap-4 has-[>[data-slot=grid-skeleton-toolbar]]:h-[calc(100dvh-(--spacing(20)))]",
13 className,
14 )}
15 {...props}
16 />
17 );
18}
19
20interface DataGridSkeletonToolbarProps extends DivProps {
21 align?: "start" | "center" | "end";
22 actionCount?: number;
23}
24
25function DataGridSkeletonToolbar({
26 align = "end",
27 actionCount = 4,
28 className,
29 ...props
30}: DataGridSkeletonToolbarProps) {
31 return (
32 <div
33 data-slot="grid-skeleton-toolbar"
34 className={cn(
35 "flex items-center gap-2",
36 {
37 "justify-start": align === "start",
38 "justify-center": align === "center",
39 "justify-end": align === "end",
40 },
41 className,
42 )}
43 {...props}
44 >
45 {Array.from({ length: actionCount }).map((_, i) => (
46 <Skeleton key={i} className="h-7 w-20 shrink-0" />
47 ))}
48 </div>
49 );
50}
51
52function DataGridSkeletonGrid({ className, ...props }: DivProps) {
53 return (
54 <Skeleton
55 data-slot="grid-skeleton-grid"
56 className={cn("flex-1", className)}
57 {...props}
58 />
59 );
60}
61
62export { DataGridSkeleton, DataGridSkeletonGrid, DataGridSkeletonToolbar };

What it pulls in

Other registry items

  • skeleton

Files it writes

  • src/components/data-grid/data-grid-skeleton.tsx

Facts

Registry
tablecn
Type
registry:component
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-01
Last confirmed
today

Go to the source

tablecn.com sadmann7/tablecn on GitHub Raw registry item This item as JSON

More from tablecn

All 13 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Data Griddata-gridtablecnComponentsFree4 deps · 21 files
Data Grid Filter Menudata-grid-filter-menutablecnComponentsFree2 deps · 8 files
Data Grid Keyboard Shortcutsdata-grid-keyboard-shortcutstablecnComponentsFree1 dep · 2 files
Data Grid Row Height Menudata-grid-row-height-menutablecnComponentsFree2 deps
Data Grid Select Columndata-grid-select-columntablecnComponentsFree1 dep
Data Grid Sort Menudata-grid-sort-menutablecnComponentsFree2 deps · 4 files
Data Grid View Menudata-grid-view-menutablecnComponentsFree2 deps · 2 files
Data Tabledata-tabletablecnComponentsFree3 deps · 17 files
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex