{
  "id": "skeleton-table",
  "name": "Skeleton Table",
  "category": "loaders",
  "tags": [
    "placeholder",
    "data grid",
    "rows",
    "columns",
    "shimmer"
  ],
  "description": "A table placeholder with a header row and shimmering cells laid out with CSS Grid columns.",
  "url": "https://copy-css.com/snippets/skeleton-table",
  "markdown": "https://copy-css.com/snippets/skeleton-table.md",
  "html": "<div class=\"skel-table\" role=\"status\" aria-label=\"Loading table\">\n  <div class=\"skel-table-row\"><span></span><span></span><span></span></div>\n  <div class=\"skel-table-row\"><span></span><span></span><span></span></div>\n  <div class=\"skel-table-row\"><span></span><span></span><span></span></div>\n  <div class=\"skel-table-row\"><span></span><span></span><span></span></div>\n</div>",
  "css": ".skel-table {\n  width: min(100%, 300px);\n  overflow: hidden;\n  border: 1px solid #e5e7eb;\n  border-radius: 12px;\n  background: #fff;\n}\n\n.skel-table-row {\n  display: grid;\n  grid-template-columns: 2fr 1fr 1fr;\n  align-items: center;\n  gap: 16px;\n  padding: 14px 16px;\n  border-top: 1px solid #f1f5f9;\n}\n\n.skel-table span {\n  height: 10px;\n  border-radius: 5px;\n  background: linear-gradient(90deg, #e5e7eb 30%, #f3f4f6 50%, #e5e7eb 70%) 0 0 / 300% 100%;\n  animation: skel-table-shine 1.6s linear infinite;\n}\n\n.skel-table span:last-child {\n  width: 60%;\n  justify-self: end;\n}\n\n/* Header row */\n.skel-table-row:first-child {\n  border-top: 0;\n  background: #f8fafc;\n}\n\n.skel-table-row:first-child span {\n  width: 50%;\n  height: 8px;\n  background: #cbd5e1;\n  animation: none;\n}\n\n@keyframes skel-table-shine {\n  from { background-position: 100% 0; }\n  to { background-position: 0 0; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .skel-table span { animation: none; }\n}",
  "features": [
    "keyframe animations",
    "linear gradients",
    "CSS Grid",
    "reduced-motion support"
  ],
  "customProperties": []
}
