{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "draggable-list-shadcnui", "type": "registry:component", "title": "Draggable List", "description": "Reorderable list with drag and drop spring physics", "registryDependencies": [ "button" ], "dependencies": [ "framer-motion", "react" ], "files": [ { "path": "@uitripled/react-shadcn/src/components/components/lists/draggable-list.tsx", "content": "\"use client\";\n\nimport { Reorder } from \"framer-motion\";\nimport { GripVertical } from \"lucide-react\";\nimport { useState } from \"react\";\n\nconst initialItems = [\n { id: 1, text: \"First item\" },\n { id: 2, text: \"Second item\" },\n { id: 3, text: \"Third item\" },\n { id: 4, text: \"Fourth item\" },\n];\n\nexport function DraggableList() {\n const [items, setItems] = useState(initialItems);\n\n return (\n \n {items.map((item) => (\n \n \n {item.text}\n \n ))}\n \n );\n}\n", "type": "registry:component", "target": "components/uitripled/draggable-list-shadcnui.tsx" } ] }