{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "bulk-actions-bar",
  "type": "registry:ui",
  "title": "Bulk actions bar",
  "description": "Floating Tailwind selection bar that appears once rows are selected, showing the count, your action buttons and a clear button. Sticks to the bottom edge.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.minidev.pro/r/button.json",
    "utils"
  ],
  "files": [
    {
      "path": "registry/ui/bulk-actions-bar.tsx",
      "type": "registry:ui",
      "target": "components/ui/bulk-actions-bar.tsx",
      "content": "\"use client\"\nimport * as React from \"react\"\nimport { cn } from \"@/lib/utils\"\nimport { Button } from \"@/components/ui/button\"\n\nfunction BulkActionsBar({\n  count,\n  children,\n  onClear,\n  className,\n}: {\n  count: number\n  children?: React.ReactNode\n  onClear?: () => void\n  className?: string\n}) {\n  if (count <= 0) return null\n  return (\n    <div\n      data-slot=\"bulk-actions-bar\"\n      role=\"status\"\n      className={cn(\n        \"sticky bottom-4 z-40 mx-auto flex w-fit items-center gap-3 rounded-xl border border-border bg-raised px-3 py-2\",\n        \"shadow-lg\",\n        className\n      )}\n    >\n      <span className=\"text-sm font-medium text-fg tabular-nums\">{count} selected</span>\n      <div className=\"flex items-center gap-1.5\">{children}</div>\n      {onClear ? (\n        <Button type=\"button\" variant=\"ghost\" size=\"sm\" onClick={onClear}>\n          Clear\n        </Button>\n      ) : null}\n    </div>\n  )\n}\nexport { BulkActionsBar }\n"
    }
  ]
}
