{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Grey blocks in the shape of what is coming: cards, a list or an article.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n\nexport type Line = {\n  id: string;\n};\n",
      "path": "blocks/skeleton-layout.types.ts",
      "target": "blocks/skeleton-layout.types.ts"
    },
    {
      "content": "<!-- Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT. -->\n<!--\n  The loading state of a page: grey blocks in the shape of the content that is coming (cards, a list of rows or\n  an article). Axes: shape (cards, list, article), tone. The label tells assistive technology that the content\n  is loading. The shimmer itself belongs to the Skeleton part.\n-->\n<script lang=\"ts\">\nimport type { Line } from \"./skeleton-layout.types\";\n\nexport type SkeletonLayoutProps = {\n  id: string;\n  title: string;\n  label: string;\n  lines: Line[];\n  shape?: \"cards\" | \"list\" | \"article\";\n  tone?: \"default\" | \"muted\";\n  landmarkLabel?: string;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Block from \"../compose/Block.vue\";\nimport Grid from \"../compose/Grid.vue\";\nimport Group from \"../compose/Group.vue\";\nimport Skeleton from \"../compose/Skeleton.vue\";\nimport Stack from \"../compose/Stack.vue\";\nimport SectionFrame from \"../components/section-frame.vue\";\n\nconst {\n  id,\n  title,\n  label,\n  lines,\n  shape = \"cards\",\n  tone = \"default\",\n  landmarkLabel,\n} = defineProps<SkeletonLayoutProps>();\n</script>\n\n<template>\n  <SectionFrame :id=\"id\" :title=\"title\" :tone=\"tone\" :landmarkLabel=\"landmarkLabel\">\n    <Block tag=\"div\" class=\"w-full\" role=\"status\" :aria-label=\"label\" :data-shape=\"shape\" data-slot=\"skeleton\">\n      <Grid v-if=\"((shape as string) === 'cards')\" cols=\"1-3\" class=\"gap-4\">\n        <Stack\n          v-for=\"l in lines\"\n          :key=\"l.id\"\n          gap=\"4\"\n          class=\"rounded bg-card inset-ring inset-ring-border p-4\"\n          data-slot=\"item\"\n        >\n          <Skeleton class=\"aspect-video w-full\" />\n          <Skeleton class=\"h-4 w-2/3\" />\n          <Skeleton class=\"h-4 w-full\" />\n        </Stack>\n      </Grid>\n      <Stack v-else-if=\"((shape as string) === 'list')\" gap=\"4\" align=\"stretch\">\n        <Group v-for=\"l in lines\" :key=\"l.id\" gap=\"4\" align=\"center\" data-slot=\"item\">\n          <Skeleton class=\"size-10 shrink-0 rounded-full\" />\n          <Stack gap=\"2\" class=\"flex-1\">\n            <Skeleton class=\"h-4 w-1/3\" />\n            <Skeleton class=\"h-4 w-full\" />\n          </Stack>\n        </Group>\n      </Stack>\n      <Stack v-else gap=\"4\" align=\"stretch\" class=\"mx-auto max-w-2xl\">\n        <Skeleton class=\"h-8 w-3/4\" />\n        <Stack v-for=\"l in lines\" :key=\"l.id\" gap=\"2\" data-slot=\"item\">\n          <Skeleton class=\"h-4 w-full\" />\n          <Skeleton class=\"h-4 w-5/6\" />\n        </Stack>\n      </Stack>\n    </Block>\n  </SectionFrame>\n</template>\n",
      "path": "blocks/skeleton-layout.vue",
      "target": "blocks/skeleton-layout.vue"
    }
  ],
  "meta": {
    "category": "dashboard",
    "group": "states",
    "kind": "block",
    "tags": [
      "vue",
      "block"
    ]
  },
  "name": "skeleton-layout",
  "registryDependencies": [
    "block",
    "grid",
    "group",
    "section-frame",
    "skeleton",
    "stack",
    "utils"
  ],
  "runtime": "vue",
  "title": "Skeleton Layout",
  "type": "registry:block"
}
