{
  "$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/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n/**\n * The \"N selected\" bar of a list: a count, a clear button and the bulk actions (children). All text comes in\n * through props.\n */\nimport { type JSX } from \"solid-js\";\nimport { Box, Button, Inline } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { cn } from \"../utils\";\n\nexport type BulkBarProps = {\n  label: string;\n  clearLabel: string;\n  class?: string;\n  children?: JSX.Element;\n  onClear?: () => void;\n};\n\nexport function BulkBar({ label, clearLabel, class: className, children, onClear }: BulkBarProps) {\n  return (\n    <Box\n      class={cn(\n        \"flex flex-wrap items-center gap-2 rounded bg-foreground px-4 py-2 text-xs font-bold text-background\",\n        className\n      )}\n      role=\"region\"\n      aria-label={label}\n      aria-live=\"polite\"\n      data-slot=\"bulk-bar\"\n    >\n      <Button\n        variant=\"ghost\"\n        size=\"sm\"\n        layout=\"icon\"\n        type=\"button\"\n        aria-label={clearLabel}\n        class=\"text-background hover:bg-background/15 hover:text-background\"\n        onClick={() => onClear?.()}\n      >\n        <LucideIcon name=\"x\" size={16} />\n      </Button>\n      <Inline data-slot=\"bulk-count\">\n        {label}\n      </Inline>\n      <Inline class=\"ml-auto flex flex-wrap items-center gap-2\">\n        {children}\n      </Inline>\n    </Box>\n  );\n}\n",
      "path": "components/bulk-bar.tsx",
      "target": "components/bulk-bar.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "solid",
      "component"
    ]
  },
  "name": "bulk-bar",
  "registryDependencies": [
    "compose",
    "lucide-icon",
    "utils"
  ],
  "runtime": "solid",
  "title": "Bulk Bar",
  "type": "registry:component"
}
