{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "sheet-animation-demo",
  "registryDependencies": [
    "https://ui-three-mu.vercel.app/r/sheet.json",
    "https://ui-three-mu.vercel.app/r/button.json",
    "https://ui-three-mu.vercel.app/r/grid-list.json",
    "https://ui-three-mu.vercel.app/r/badge.json"
  ],
  "files": [
    {
      "path": "registry/preskok/examples/sheet-animation-demo.tsx",
      "content": "\"use client\"\n\nimport { Badge } from \"@/components/ui/preskok-ui/badge\"\nimport { Button } from \"@/components/ui/preskok-ui/button\"\nimport {\n  GridList,\n  GridListDescription,\n  GridListItem,\n  GridListLabel,\n  GridListSpacer,\n  GridListStart,\n} from \"@/components/ui/preskok-ui/grid-list\"\nimport {\n  Sheet,\n  SheetBody,\n  SheetClose,\n  SheetContent,\n  SheetDescription,\n  SheetFooter,\n  SheetHeader,\n  SheetTitle,\n} from \"@/components/ui/preskok-ui/sheet\"\n\n// `from` is the dismissed state and `to` is fully open; the swipe scrubs between them.\nconst keyframes = `\n@keyframes sheet-tilt {\n  from {\n    transform-origin: top right;\n    transform: skew(10deg) scale(0.8);\n  }\n  to {\n    transform: skew(0deg) scale(1);\n  }\n}\n`\n\nexport default function SheetAnimationDemo() {\n  return (\n    <Sheet>\n      {/* React hoists and dedupes the style by `href`, however many sheets render it. */}\n      <style href=\"sheet-tilt\" precedence=\"default\">\n        {keyframes}\n      </style>\n      <Button intent=\"outline\">Open garage</Button>\n      <SheetContent swipeAnimation=\"sheet-tilt\">\n        <SheetHeader>\n          <SheetTitle>My garage</SheetTitle>\n          <SheetDescription>\n            Swipe the sheet slowly to watch it tilt away.\n          </SheetDescription>\n        </SheetHeader>\n        <SheetBody>\n          <GridList aria-label=\"Vehicles\" items={vehicles}>\n            {(vehicle) => (\n              <GridListItem id={vehicle.id} textValue={vehicle.name}>\n                <GridListStart>\n                  <div>\n                    <GridListLabel>{vehicle.name}</GridListLabel>\n                    <GridListDescription>{vehicle.plate}</GridListDescription>\n                  </div>\n                </GridListStart>\n                <GridListSpacer />\n                <Badge\n                  intent={vehicle.intent}\n                  className=\"shrink-0 whitespace-nowrap\"\n                >\n                  {vehicle.status}\n                </Badge>\n              </GridListItem>\n            )}\n          </GridList>\n        </SheetBody>\n        <SheetFooter>\n          <SheetClose>Close</SheetClose>\n        </SheetFooter>\n      </SheetContent>\n    </Sheet>\n  )\n}\n\nconst vehicles = [\n  {\n    id: \"308\",\n    name: \"Peugeot 308 SW\",\n    plate: \"LJ 48-KTE\",\n    status: \"Service soon\",\n    intent: \"secondary\",\n  },\n  {\n    id: \"yaris\",\n    name: \"Toyota Yaris Hybrid\",\n    plate: \"KR 12-HJA\",\n    status: \"Tyres due\",\n    intent: \"warning\",\n  },\n  {\n    id: \"kangoo\",\n    name: \"Renault Kangoo\",\n    plate: \"MB 77-PLS\",\n    status: \"Up to date\",\n    intent: \"success\",\n  },\n] as const\n",
      "type": "registry:example"
    }
  ],
  "type": "registry:example"
}