{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A titled card (surface bg-card, hairline ring): the content panel of a page. An optional title, description and header actions. Pass `id` to name the panel by its title. Not a landmark: a labelled group inside the Block of its block (rule 01).",
  "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 */\nimport { type ReactNode } from \"react\";\nimport { Box, Text, Title } from \"../compose\";\nimport { cn, tpl } from \"../utils\";\n\nexport type PanelProps = {\n  title?: string;\n  description?: string;\n  id?: string;\n  className?: string;\n  children?: ReactNode;\n  actions?: ReactNode;\n};\n\nexport function Panel({ title, description, id, className, children, actions }: PanelProps) {\n  return (\n    <Box\n      className={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      {(title || actions) ? (\n        <Box className=\"flex items-start justify-between gap-4\">\n          <Box className=\"flex min-w-0 flex-col gap-2\">\n            {title ? (\n              <Title as={2} size=\"base\" className=\"m-0 text-foreground\" id={(id ? tpl(\"{0}-t\", id) : undefined)}>\n                {title}\n              </Title>\n            ) : null}\n            {description ? (\n              <Text className=\"m-0 text-xs font-medium text-muted-foreground\">\n                {description}\n              </Text>\n            ) : null}\n          </Box>\n          {actions}\n        </Box>\n      ) : null}\n      {children}\n    </Box>\n  );\n}\n",
      "path": "components/panel.tsx",
      "target": "components/panel.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "react",
      "component"
    ]
  },
  "name": "panel",
  "registryDependencies": [
    "compose",
    "utils"
  ],
  "runtime": "react",
  "title": "Panel",
  "type": "registry:component"
}
