{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The panel of the active step of StoryTabs: the year badge and the step count, the title, the text and the tag in a muted box.",
  "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/organisms/story-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// StoryPanelProps are the props of StoryPanel; the values are the JSON shapes of the TypeScript props.\ntype StoryPanelProps struct {\n\tS any `json:\"s\"`\n\tIndex any `json:\"index\"`\n\tTotal any `json:\"total\"`\n\tLabels any `json:\"labels\"`\n}\n\n// The panel of the active step of StoryTabs: the year badge and the step count, the title, the text and the tag in a muted box.\ntempl StoryPanel(p StoryPanelProps) {\n\t{{ vS := p.S }}\n\t{{ vIndex := p.Index }}\n\t{{ vTotal := p.Total }}\n\t{{ vLabels := p.Labels }}\n\t@compose.Stack(compose.StackProps{Gap: \"4\", Align: \"stretch\", BoxProps: box.BoxProps{Class: \"rounded bg-card inset-ring inset-ring-border p-6\", Attrs: uiutils.Attrs(\"data-slot\", \"story-panel\")}}) {\n\t\t@compose.Group(compose.GroupProps{Gap: \"2\", Align: \"center\", BoxProps: box.BoxProps{}}) {\n\t\t\t@compose.Badge(compose.BadgeProps{Variant: \"secondary\", Size: \"sm\", TextProps: text.TextProps{}}) {\n\t\t\t\t{ uiutils.Text(uiutils.Get(vS, \"date\")) }\n\t\t\t}\n\t\t\t@compose.Text(compose.TextProps{Size: \"xs\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t{ uiutils.Text(uiutils.Tpl(uiutils.Get(vLabels, \"step\"), uiutils.Str(uiutils.Add(vIndex, float64(1))), uiutils.Str(vTotal))) }\n\t\t\t}\n\t\t}\n\t\t@compose.Title(compose.TitleProps{As: \"3\", Size: \"xl\", Weight: \"semibold\", TextProps: text.TextProps{}}) {\n\t\t\t{ uiutils.Text(uiutils.Get(vS, \"title\")) }\n\t\t}\n\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t{ uiutils.Text(uiutils.Get(vS, \"text\")) }\n\t\t}\n\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"rounded bg-muted p-4\"}}) {\n\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", Weight: \"semibold\", TextProps: text.TextProps{}}) {\n\t\t\t\t{ uiutils.Text(uiutils.Get(vS, \"tag\")) }\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/story-panel.templ",
      "target": "blocks/story-panel.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "story-panel",
  "registryDependencies": [
    "badge",
    "box",
    "group",
    "kit-box",
    "kit-text",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "templ",
  "title": "Story Panel",
  "type": "registry:component"
}
