{
  "$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<!--\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\" module>\n  import type { Snippet } from \"svelte\";\n  import type { Line } from \"./skeleton-layout.types\";\n\n  export 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 lang=\"ts\">\n  import Block from \"../compose/Block.svelte\";\n  import Grid from \"../compose/Grid.svelte\";\n  import Group from \"../compose/Group.svelte\";\n  import Skeleton from \"../compose/Skeleton.svelte\";\n  import Stack from \"../compose/Stack.svelte\";\n  import SectionFrame from \"../components/section-frame.svelte\";\n\n  let {\n    id,\n    title,\n    label,\n    lines,\n    shape = \"cards\",\n    tone = \"default\",\n    landmarkLabel,\n  }: SkeletonLayoutProps = $props();\n</script>\n\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    {#if ((shape as string) === \"cards\")}\n      <Grid cols=\"1-3\" class=\"gap-4\">\n        {#each lines as l (l.id)}\n          <Stack gap=\"4\" class=\"rounded bg-card inset-ring inset-ring-border p-4\" data-slot=\"item\">\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        {/each}\n      </Grid>\n    {:else if ((shape as string) === \"list\")}\n      <Stack gap=\"4\" align=\"stretch\">\n        {#each lines as l (l.id)}\n          <Group 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        {/each}\n      </Stack>\n    {:else}\n      <Stack gap=\"4\" align=\"stretch\" class=\"mx-auto max-w-2xl\">\n        <Skeleton class=\"h-8 w-3/4\" />\n        {#each lines as l (l.id)}\n          <Stack gap=\"2\" data-slot=\"item\">\n            <Skeleton class=\"h-4 w-full\" />\n            <Skeleton class=\"h-4 w-5/6\" />\n          </Stack>\n        {/each}\n      </Stack>\n    {/if}\n  </Block>\n</SectionFrame>\n",
      "path": "blocks/skeleton-layout.svelte",
      "target": "blocks/skeleton-layout.svelte"
    },
    {
      "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"
    }
  ],
  "meta": {
    "category": "dashboard",
    "group": "states",
    "kind": "block",
    "tags": [
      "svelte",
      "block"
    ]
  },
  "name": "skeleton-layout",
  "registryDependencies": [
    "block",
    "grid",
    "group",
    "section-frame",
    "skeleton",
    "stack",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Skeleton Layout",
  "type": "registry:block"
}
