Goo Reorder, animated React component
- Pro
- Inputs & Controls
- Spring
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.
Lifts when you pick a row up, ticks as it passes each neighbour and thumps when you drop it. Sound is off on this site until you switch it on.
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. |
| goo | number | 7 | How strongly the rows melt into each other (1 to 16). Higher gives thicker, longer necks between rows, 1 is almost none. |
| gap | number | 10 | Space between rows, in px (2 to 32). |
| rowHeight | number | 48 | Height of each row, in px (32 to 72). The ends stay fully round. |
| lift | number | 1.06 | How much the row you are dragging grows (1 to 1.25). 1 is no growth. |
| bounce | number | 1 | How much rows wobble as they settle into place (0.4 to 2.5). Higher bounces more, lower settles dead. |
| enableSound | boolean | true | Plays interface sounds on interaction. They follow the sound switch (setSoundsEnabled, on by default) and stay silent on hover. Autoplay makes the same sounds once the visitor has used the page. Pass false to silence this component. |
Add it to your project
- 1
Set up your project once
You need a Next.js project with Tailwind CSS and the
@/import alias. In its root folder, run this once. It createscomponents.jsonand thecn()helper insrc/lib/utils.ts:npx shadcn@latest init -d
Starting from nothing? The Quick Start walks through the whole thing.
- 2
Connect the registry with your API key
Goo Reorder is a Pro item, so the CLI has to send your API key. Do this once per project:
- Create a key at nexus-ui.com/dashboard/api-key. Copy it straight away: it starts with
nxs_and is shown only once. - In your project root, next to
package.json, create a file named.env.localwith this line, using your own key:NEXUS_API_KEY=nxs_your_key_here
- Open
components.jsonand add this entry inside the outermost braces, next to"aliases". Leave{name}and${NEXUS_API_KEY}exactly as written; the CLI fills them in:"registries": { "@nexus-labs": { "url": "https://www.nexus-ui.com/api/registry/{name}", "headers": { "Authorization": "Bearer ${NEXUS_API_KEY}" } } }
- Create a key at nexus-ui.com/dashboard/api-key. Copy it straight away: it starts with
How Goo Reorder works
A reorderable list made of liquid. Drag a row and it stays joined to its neighbours by a neck of ink that stretches as it leaves and pinches off as top so it stays sharp.
The source, the install command and the build prompt come with Pro.
Goo Reorder questions
How do I install Goo Reorder?
Run `npx shadcn@latest add @nexus-labs/goo-reorder`. It adds the component and installs framer-motion. It is a Pro component, so it needs a Pro plan and an API key; key setup is on the CLI docs page (/docs/cli).
How do I set the rows and read the new order?
Pass `items` as an array of `{ id, label, color }`; `color` tints the numbered badge. `onReorder` receives the new array after a drag or an arrow-key move. `items` only sets the starting order, so later changes to the prop do not update the list.
Can rows be moved without a mouse?
Yes. Each row is focusable, and `ArrowUp` or `ArrowDown` moves the focused row one place and calls `onReorder`. The row's label announces its position, such as "position 2 of 5".
How is the liquid effect made?
One SVG filter (a blur plus a color matrix) is applied to the whole list, which merges neighbouring rows into a liquid shape while the text stays sharp. Dragging is Framer Motion's `Reorder` component, limited to the vertical axis.
Does it make sound, and how do I turn it off?
Lifts when you pick a row up, ticks as it passes each neighbour and thumps when you drop it. Sounds are synthesised with the Web Audio API, so there are no audio files, and they only play after a click or key press. Pass `enableSound={false}` to silence this component, or call `setSoundsEnabled(false)` from `@/lib/ui-sounds` to switch every sound off at once. The CLI installs `@/lib/ui-sounds` with the component.

