{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "collapsible",
  "title": "Collapsible",
  "description": "Region that shows and hides from a trigger, built on Radix.",
  "dependencies": [
    "radix-ui@^1.6.7"
  ],
  "registryDependencies": [
    "@pestoui/style",
    "@pestoui/utils"
  ],
  "files": [
    {
      "path": "pestoui/ui/collapsible.tsx",
      "content": "import { Collapsible as CollapsiblePrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Collapsible({\n  ...props\n}: React.ComponentProps<typeof CollapsiblePrimitive.Root>) {\n  return <CollapsiblePrimitive.Root data-slot=\"collapsible\" {...props} />\n}\n\nfunction CollapsibleTrigger({\n  ...props\n}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>) {\n  return (\n    <CollapsiblePrimitive.CollapsibleTrigger\n      data-slot=\"collapsible-trigger\"\n      {...props}\n    />\n  )\n}\n\n/* Same asymmetry as the accordion, for the same reason: opening springs open\n   with real overshoot because it happens rarely and the weight is the point;\n   closing is a short decisive tween. `overflow-hidden` is what makes the height\n   animation possible at all — without it the contents spill past the collapsing\n   edge instead of being clipped by it. No content fade here: the children are\n   the caller's, so there is no wrapper to fade independently of the panel, and\n   fading this element would run the opacity through the bouncy curve too. */\nfunction CollapsibleContent({\n  className,\n  ...props\n}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>) {\n  return (\n    <CollapsiblePrimitive.CollapsibleContent\n      data-slot=\"collapsible-content\"\n      className={cn(\n        \"overflow-hidden data-open:animate-collapsible-down data-open:duration-spring-bouncy data-open:ease-spring-bouncy data-closed:animate-collapsible-up data-closed:duration-slow data-closed:ease-out-expo\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nexport { Collapsible, CollapsibleTrigger, CollapsibleContent }\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}