{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Panel component",
  "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  A titled card (surface bg-card, hairline ring): the content panel of a page. An optional title, description\n  and header actions. Pass `id` to name the panel by its title. Not a landmark: a labelled group inside the\n  Block of its block (rule 01).\n-->\n<script lang=\"ts\" module>\n  import type { Snippet } from \"svelte\";\n\n  export type PanelProps = {\n    title?: string;\n    description?: string;\n    id?: string;\n    class?: string;\n    children?: Snippet;\n    actions?: Snippet;\n  };\n</script>\n\n<script lang=\"ts\">\n  import Box from \"../compose/Box.svelte\";\n  import Text from \"../compose/Text.svelte\";\n  import Title from \"../compose/Title.svelte\";\n  import { cn, tpl } from \"../utils\";\n\n  let { title, description, id, class: className, children, actions }: PanelProps = $props();\n</script>\n\n<Box\n  class={cn(\n    \"flex min-w-0 flex-col gap-4 rounded bg-card p-6 inset-ring inset-ring-border\",\n    className\n  )}\n  role=\"group\"\n  aria-labelledby={((title && id) ? tpl(\"{0}-t\", id) : undefined)}\n>\n  {#if (title || actions)}\n    <Box class=\"flex items-start justify-between gap-4\">\n      <Box class=\"flex min-w-0 flex-col gap-2\">\n        {#if title}\n          <Title as={2} size=\"base\" class=\"m-0 text-foreground\" id={(id ? tpl(\"{0}-t\", id) : undefined)}>\n            {title}\n          </Title>\n        {/if}\n        {#if description}\n          <Text class=\"m-0 text-xs font-medium text-muted-foreground\">\n            {description}\n          </Text>\n        {/if}\n      </Box>\n      {@render actions?.()}\n    </Box>\n  {/if}\n  {@render children?.()}\n</Box>\n",
      "path": "components/panel.svelte",
      "target": "components/panel.svelte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "svelte",
      "component"
    ]
  },
  "name": "panel",
  "registryDependencies": [
    "box",
    "text",
    "title",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Panel",
  "type": "registry:component"
}
