{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The buttons at the end of a top bar: login, the call to action and the theme button (it only reports the press). No wrapper: they sit in the row of the bar.",
  "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/nav-actions.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/button\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// NavActionsProps are the props of NavActions; the values are the JSON shapes of the TypeScript props.\ntype NavActionsProps struct {\n\tLogin any `json:\"login\"`\n\tLoginHref any `json:\"loginHref\"`\n\tCta any `json:\"cta\"`\n\tCtaHref any `json:\"ctaHref\"`\n\tActions any `json:\"actions\"`\n\tTone any `json:\"tone\"`\n\tThemeLabel any `json:\"themeLabel\"`\n}\n\n// The buttons at the end of a top bar: login, the call to action and the theme button (it only reports the press). No wrapper: they sit in the row of the bar.\ntempl NavActions(p NavActionsProps) {\n\t{{ vLogin := p.Login }}\n\t{{ vLoginHref := p.LoginHref }}\n\t{{ vCta := p.Cta }}\n\t{{ vCtaHref := p.CtaHref }}\n\t{{ vActions := uiutils.Def(p.Actions, \"cta\") }}\n\t{{ vTone := uiutils.Def(p.Tone, \"default\") }}\n\t{{ vThemeLabel := p.ThemeLabel }}\n\tif uiutils.T(vLogin) {\n\t\t@compose.Button(compose.ButtonProps{Variant: \"ghost\", Size: \"sm\", ButtonProps: button.ButtonProps{Href: uiutils.URL(vLoginHref, false), Class: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vTone, \"inverse\")), \"text-background hover:bg-background/10\", \"\"))}}) {\n\t\t\t{ uiutils.Text(vLogin) }\n\t\t}\n\t}\n\tif uiutils.T(uiutils.And(uiutils.Eq(vActions, \"cta\"), vCta)) {\n\t\t@compose.Button(compose.ButtonProps{Variant: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vTone, \"inverse\")), \"secondary\", \"default\")), Size: \"sm\", ButtonProps: button.ButtonProps{Href: uiutils.URL(vCtaHref, false)}}) {\n\t\t\t{ uiutils.Text(vCta) }\n\t\t}\n\t}\n\tif uiutils.T(vThemeLabel) {\n\t\t@compose.Button(compose.ButtonProps{Variant: \"outline\", Size: \"sm\", ButtonProps: button.ButtonProps{}}) {\n\t\t\t{ uiutils.Text(vThemeLabel) }\n\t\t}\n\t}\n}\n",
      "path": "blocks/nav-actions.templ",
      "target": "blocks/nav-actions.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "nav-actions",
  "registryDependencies": [
    "button",
    "kit-button",
    "utils"
  ],
  "runtime": "templ",
  "title": "Nav Actions",
  "type": "registry:component"
}
