GodUIGodUI
109Follow on X
  • Draft proposal
  • Review with design
  • Ship to staging
  • Announce

Reorder List

tsx
import { ReorderList, ReorderItem } from "@/components/godui/reorder-list";import { useState } from "react";export function ReorderListDemo() {const [items, setItems] = useState([  { id: "1", label: "Draft proposal" },  { id: "2", label: "Review with design" },  { id: "3", label: "Ship to staging" },]);return (  <ReorderList values={items} onReorder={setItems}>    {items.map((item) => (      <ReorderItem key={item.id} value={item}>        {item.label}      </ReorderItem>    ))}  </ReorderList>);}