Skip to content

NewMCP server for your coding agent. Set it up ›

Nexus UI
Get Pro

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

PropTypeDefaultWhat it does
itemsDEFAULT_GOO_ITEMSStarting rows, each { id, label, color } where color tints the numbered badge.
onReorder—Called with the new order after the user drags a row or moves it with the arrow keys.
autoplayfalseSwaps two random rows every 1.6s until someone touches the list.
goo7How strongly the rows melt into each other (1 to 16). Higher gives thicker, longer necks between rows, 1 is almost none.
gap10Space between rows, in px (2 to 32).
rowHeight48Height of each row, in px (32 to 72). The ends stay fully round.
lift1.06How much the row you are dragging grows (1 to 1.25). 1 is no growth.
bounce1How much rows wobble as they settle into place (0.4 to 2.5). Higher bounces more, lower settles dead.
enableSoundtruePlays 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. 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 creates components.json and the cn() helper in src/lib/utils.ts:

    npx shadcn@latest init -d

    Starting from nothing? The Quick Start walks through the whole thing.

  2. 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:

    1. Create a key at nexus-ui.com/dashboard/api-key. Copy it straight away: it starts with nxs_ and is shown only once.
    2. In your project root, next to package.json, create a file named .env.local with this line, using your own key:
      NEXUS_API_KEY=nxs_your_key_here
    3. Open components.json and 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}"
          }
        }
      }

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.