{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "One or two calls to action side by side: a filled primary button and an outline secondary one. Links, not handlers: the page decides what they open.",
  "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/action-group.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\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// ActionGroupProps are the props of ActionGroup; the values are the JSON shapes of the TypeScript props.\ntype ActionGroupProps struct {\n\tPrimary any `json:\"primary\"`\n\tPrimaryHref any `json:\"primaryHref\"`\n\tSecondary any `json:\"secondary\"`\n\tSecondaryHref any `json:\"secondaryHref\"`\n\tAlign any `json:\"align\"`\n}\n\n// One or two calls to action side by side: a filled primary button and an outline secondary one. Links, not handlers: the page decides what they open.\ntempl ActionGroup(p ActionGroupProps) {\n\t{{ vPrimary := p.Primary }}\n\t{{ vPrimaryHref := p.PrimaryHref }}\n\t{{ vSecondary := p.Secondary }}\n\t{{ vSecondaryHref := p.SecondaryHref }}\n\t{{ vAlign := uiutils.Def(p.Align, \"start\") }}\n\t@compose.Group(compose.GroupProps{Gap: \"4\", Align: \"center\", Justify: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vAlign, \"center\")), \"center\", \"start\")), BoxProps: box.BoxProps{Class: \"flex-wrap\", Attrs: uiutils.Attrs(\"data-slot\", \"action-group\")}}) {\n\t\t@compose.Button(compose.ButtonProps{Variant: \"default\", Size: \"default\", ButtonProps: button.ButtonProps{Href: uiutils.URL(vPrimaryHref, false)}}) {\n\t\t\t{ uiutils.Text(vPrimary) }\n\t\t}\n\t\tif uiutils.T(vSecondary) {\n\t\t\t@compose.Button(compose.ButtonProps{Variant: \"outline\", Size: \"default\", ButtonProps: button.ButtonProps{Href: uiutils.URL(vSecondaryHref, false)}}) {\n\t\t\t\t{ uiutils.Text(vSecondary) }\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/action-group.templ",
      "target": "blocks/action-group.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "action-group",
  "registryDependencies": [
    "button",
    "group",
    "kit-box",
    "kit-button",
    "utils"
  ],
  "runtime": "templ",
  "title": "Action Group",
  "type": "registry:component"
}
