{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The \"N selected\" bar of a list: a count, a clear button and the bulk actions (children). All text comes in through props.",
  "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/bulk-bar.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\t\"github.com/ui8kit/codegen/generated/templ/icons\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// BulkBarProps are the props of BulkBar; the values are the JSON shapes of the TypeScript props.\ntype BulkBarProps struct {\n\tLabel any `json:\"label\"`\n\tClearLabel any `json:\"clearLabel\"`\n\tClass string `json:\"className\"`\n}\n\n// The \"N selected\" bar of a list: a count, a clear button and the bulk actions (children). All text comes in through props.\ntempl BulkBar(p BulkBarProps) {\n\t{{ vLabel := p.Label }}\n\t{{ vClearLabel := p.ClearLabel }}\n\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"flex flex-wrap items-center gap-2 rounded bg-foreground px-4 py-2 text-xs font-bold text-background\", p.Class)), Attrs: uiutils.Attrs(\"role\", \"region\", \"aria-label\", vLabel, \"aria-live\", \"polite\", \"data-slot\", \"bulk-bar\")}}) {\n\t\t@compose.Button(compose.ButtonProps{Variant: \"ghost\", Size: \"sm\", Layout: \"icon\", ButtonProps: button.ButtonProps{Type: \"button\", AriaLabel: uiutils.S(vClearLabel), Class: \"text-background hover:bg-background/15 hover:text-background\"}}) {\n\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"x\", Size: 16})\n\t\t}\n\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Attrs: uiutils.Attrs(\"data-slot\", \"bulk-count\")}}) {\n\t\t\t{ uiutils.Text(vLabel) }\n\t\t}\n\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Class: \"ml-auto flex flex-wrap items-center gap-2\"}}) {\n\t\t\t{ children... }\n\t\t}\n\t}\n}\n",
      "path": "blocks/bulk-bar.templ",
      "target": "blocks/bulk-bar.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "bulk-bar",
  "registryDependencies": [
    "box",
    "button",
    "inline",
    "kit-box",
    "kit-button",
    "kit-text",
    "lucide-icon",
    "utils"
  ],
  "runtime": "templ",
  "title": "Bulk Bar",
  "type": "registry:component"
}
