{
  "$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/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n// Source: packages/compose-gen/specs/parts/panel.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// PanelProps are the props of Panel; the values are the JSON shapes of the TypeScript props.\ntype PanelProps struct {\n\tTitle any `json:\"title\"`\n\tDescription any `json:\"description\"`\n\tId any `json:\"id\"`\n\tClass string `json:\"className\"`\n\tActions templ.Component `json:\"-\"`\n}\n\n// 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).\ntempl Panel(p PanelProps) {\n\t{{ vTitle := p.Title }}\n\t{{ vDescription := p.Description }}\n\t{{ vId := p.Id }}\n\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"flex min-w-0 flex-col gap-4 rounded bg-card p-6 inset-ring inset-ring-border\", p.Class)), Attrs: uiutils.Attrs(\"role\", \"group\", \"aria-labelledby\", uiutils.Cond(uiutils.T(uiutils.And(vTitle, vId)), uiutils.Tpl(\"{0}-t\", vId), nil))}}) {\n\t\tif uiutils.T(uiutils.Or(vTitle, (p.Actions != nil))) {\n\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"flex items-start justify-between gap-4\"}}) {\n\t\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"flex min-w-0 flex-col gap-2\"}}) {\n\t\t\t\t\tif uiutils.T(vTitle) {\n\t\t\t\t\t\t@compose.Title(compose.TitleProps{As: \"2\", Size: \"base\", TextProps: text.TextProps{Class: \"m-0 text-foreground\", Attrs: uiutils.Attrs(\"id\", uiutils.Cond(uiutils.T(vId), uiutils.Tpl(\"{0}-t\", vId), nil))}}) {\n\t\t\t\t\t\t\t{ uiutils.Text(vTitle) }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif uiutils.T(vDescription) {\n\t\t\t\t\t\t@compose.Text(compose.TextProps{TextProps: text.TextProps{Class: \"m-0 text-xs font-medium text-muted-foreground\"}}) {\n\t\t\t\t\t\t\t{ uiutils.Text(vDescription) }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif p.Actions != nil {\n\t\t\t\t\t@p.Actions\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t{ children... }\n\t}\n}\n",
      "path": "blocks/panel.templ",
      "target": "blocks/panel.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "panel",
  "registryDependencies": [
    "box",
    "kit-box",
    "kit-text",
    "text",
    "title",
    "utils"
  ],
  "runtime": "templ",
  "title": "Panel",
  "type": "registry:component"
}
