Goo Reorder, animated React component
A drag-to-reorder list made of ink: rows stay joined to their neighbours by a liquid neck that stretches as one leaves and pinches off as it lands, while the text stays sharp on top.
- Pro
- Inputs & Controls
- Spring
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
- 1Draft the brief
- 2Review with design
- 3Ship to beta
- 4Write the changelog
- 5Announce it
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| items | GooReorderItem[] | DEFAULT_GOO_ITEMS | Starting rows, each { id, label, color } where color tints the numbered badge. |
| onReorder | (items: GooReorderItem[]) => void | — | Called with the new order after the user drags a row or moves it with the arrow keys. |
| autoplay | boolean | false | Swaps two random rows every 1.6s until someone touches the list. |