{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The brand row of a sidebar: a mark and the product name on the left, trailing actions on the right. The variant picks the padding (recipe).",
  "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/logo-sidebar.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// LogoSidebarProps are the props of LogoSidebar; the values are the JSON shapes of the TypeScript props.\ntype LogoSidebarProps struct {\n\tVariant any `json:\"variant\"`\n\tName any `json:\"name\"`\n\tClass string `json:\"className\"`\n\tMark templ.Component `json:\"-\"`\n\tActions templ.Component `json:\"-\"`\n}\n\n// The brand row of a sidebar: a mark and the product name on the left, trailing actions on the right. The variant picks the padding (recipe).\ntempl LogoSidebar(p LogoSidebarProps) {\n\t{{ vVariant := uiutils.Def(p.Variant, \"chat\") }}\n\t{{ vName := p.Name }}\n\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(recipeLogoSidebar.Of(map[string]any{\"variant\": vVariant}), \"in-data-[nav=collapsed]:w-full in-data-[nav=collapsed]:justify-center in-data-[nav=collapsed]:p-0\", p.Class)), Attrs: uiutils.Attrs(\"data-slot\", \"logo-sidebar\")}}) {\n\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Class: \"flex items-center gap-4\", Attrs: uiutils.Attrs(\"data-slot\", \"logo-sidebar-brand\")}}) {\n\t\t\tif p.Mark != nil {\n\t\t\t\t@p.Mark\n\t\t\t}\n\t\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Class: \"text-sm font-bold text-foreground in-data-[nav=collapsed]:hidden\", Attrs: uiutils.Attrs(\"data-slot\", \"logo-sidebar-name\")}}) {\n\t\t\t\t{ uiutils.Text(vName) }\n\t\t\t}\n\t\t}\n\t\tif uiutils.T((p.Actions != nil)) {\n\t\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Class: \"flex items-center gap-2 in-data-[nav=collapsed]:hidden\", Attrs: uiutils.Attrs(\"data-slot\", \"logo-sidebar-actions\")}}) {\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}\n}\n",
      "path": "blocks/logo-sidebar.templ",
      "target": "blocks/logo-sidebar.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "logo-sidebar",
  "registryDependencies": [
    "box",
    "inline",
    "kit-box",
    "kit-text",
    "presets",
    "utils"
  ],
  "runtime": "templ",
  "title": "Logo Sidebar",
  "type": "registry:component"
}
