{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The row inside NavItem: the icon and the label on the left, the right slot (or an empty 20 by 20 frame) on the right.",
  "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/patterns/nav-item-row.json\n\npackage blocks\n\nimport (\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// NavItemRowProps are the props of NavItemRow; the values are the JSON shapes of the TypeScript props.\ntype NavItemRowProps struct {\n\tInner any `json:\"inner\"`\n\tReserveRight any `json:\"reserveRight\"`\n\tIcon templ.Component `json:\"-\"`\n\tRight templ.Component `json:\"-\"`\n}\n\n// The row inside NavItem: the icon and the label on the left, the right slot (or an empty 20 by 20 frame) on the right.\ntempl NavItemRow(p NavItemRowProps) {\n\t{{ vInner := p.Inner }}\n\t{{ vReserveRight := uiutils.Def(p.ReserveRight, false) }}\n\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Class: uiutils.S(vInner), Attrs: uiutils.Attrs(\"data-slot\", \"nav-item-content\")}}) {\n\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Class: \"flex min-w-0 flex-1 items-center gap-4 in-data-[nav=collapsed]:flex-none in-data-[nav=collapsed]:justify-center\", Attrs: uiutils.Attrs(\"data-slot\", \"nav-item-left\")}}) {\n\t\t\tif p.Icon != nil {\n\t\t\t\t@p.Icon\n\t\t\t}\n\t\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Class: \"min-w-0 flex-1 truncate in-data-[nav=collapsed]:hidden\", Attrs: uiutils.Attrs(\"data-slot\", \"nav-item-label\")}}) {\n\t\t\t\t{ children... }\n\t\t\t}\n\t\t}\n\t\tif uiutils.T((p.Right != 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\", \"nav-item-right\")}}) {\n\t\t\t\tif p.Right != nil {\n\t\t\t\t\t@p.Right\n\t\t\t\t}\n\t\t\t}\n\t\t} else if uiutils.T(vReserveRight) {\n\t\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Class: \"size-5 shrink-0 in-data-[nav=collapsed]:hidden\", Attrs: uiutils.Attrs(\"data-slot\", \"nav-item-right\")}})\n\t\t}\n\t}\n}\n",
      "path": "blocks/nav-item-row.templ",
      "target": "blocks/nav-item-row.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "nav-item-row",
  "registryDependencies": [
    "inline",
    "kit-text",
    "utils"
  ],
  "runtime": "templ",
  "title": "Nav Item Row",
  "type": "registry:component"
}
