suiss/ui ยท Interaction
Reorder List
A list whose rows are dragged by a handle to change their order, with haptics and move up and down actions.
Reorder List is an open-source interaction from suiss/ui for React Native, SwiftUI and Jetpack Compose. The @esuiss/ui CLI copies its source into your project, so you own the code.

ReorderList renders its ReorderListItems in the order given by value. Dragging a row's ReorderListHandle lifts the row: a raised surface with a shadow fades in behind it and, outside an inset group, the row grows slightly. It follows the finger while the other rows spring out of the way.
On release the row springs into its new slot and onValueChange receives the new order. Rows can have different heights. Use it for ordering favorites, playlists or priorities.
ReorderList is controlled: pass value as an array of item keys and update it in onValueChange. Give each ReorderListItem a value matching its key, and place a ReorderListHandle anywhere inside it, at the start or end. Place the list inside an ItemGroup with the inset variant for a rounded group; the lifted row then keeps the group's shape.
Installation
- Install the following dependencies:
-
Copy the animated view into
components/ui/animated-view.tsx:
- Copy the primitives it uses into
components/primitives:
- Copy and paste the following code into
components/interactions/reorder-list.tsx:
- Update the import paths to match your project setup.
- Install the following dependencies:
-
Copy the animated view into
components/ui/animated-view.tsx:
- Copy the primitives it uses into
components/primitives:
- Copy and paste the following code into
components/interactions/reorder-list.tsx:
- Update the import paths to match your project setup.
- Install the following dependencies:
-
Copy the animated view into
components/ui/animated-view.tsx:
- Copy the primitives it uses into
components/primitives:
- Copy and paste the following code into
components/interactions/reorder-list.tsx:
- Update the import paths to match your project setup.
-
Target iOS 17 or later.
-
Add the Swift package to your app:
- Copy the theme files every view uses:
- Copy the source and every file it uses:
- Add the files to your app target.
- Apply the Compose compiler plugin, enable Compose, set
compileSdkto 37 or higher andminSdkto 24 or higher, and add the dependencies:
- Copy the theme files every view uses:
- Copy the source and every file it uses:
- Update the
com.esuiss.uipackage names to match your project.
Usage
This code uses Tailwind classes that need Uniwind or NativeWind. With StyleSheet, pass the same values through the style props.
Examples
Inset
Place the list inside an ItemGroup with the inset variant for a rounded group. The lifted row keeps the group's shape and does not grow.

Leading handle
Place the ReorderListHandle at the start of each row instead of the end.

The React Native tab shows 1 more example.
Accessibility
- The handle has the
buttonrole and offersmoveUpandmoveDownaccessibility actions, so screen reader users can reorder without dragging. - Move up is omitted on the first row and move down on the last.
API Reference
ReorderList
The root that renders items in value order.
| Prop | Type | Default |
|---|---|---|
value | string[] | Required |
onValueChange | (value: string[]) => void | Required |
moveUpLabel | string | "Move up" |
moveDownLabel | string | "Move down" |
Also accepts the props of ViewProps.
ReorderList is controlled: pass value as an array of item keys and update it in onValueChange, which is called with the new order after a move. moveUpLabel and moveDownLabel label the move accessibility actions and default to Move up and Move down. Haptics play when the drag starts (medium impact), each time the target slot changes (selection) and on release (light impact), if the app provides an adapter through HapticsProvider. The lift scale is skipped when reduce motion is on, and springs respect the system reduce motion setting.
ReorderListItem
One row, keyed by its value.
| Prop | Type | Default |
|---|---|---|
value | string | Required |
Also accepts the props of ViewProps.
Give each ReorderListItem a value matching its key in the list's value.
ReorderListHandle
The grip that starts a drag.
Also accepts the props of ViewProps.
Place the handle anywhere inside an item, at the start or end. Only the handle starts a drag, so the rest of the row can still be pressed or scrolled.
ReorderList
The root that renders items in value order.
| Parameter | Type | Default |
|---|---|---|
_ย value | Binding<[Value]> | - |
row | (Value) -> Row | - |
ReorderListScope
| Property | Type |
|---|---|
key | String |
index | Int |
dragging | Boolean |
ReorderList
The root that renders items in value order.
| Parameter | Type | Default |
|---|---|---|
value | List<String> | - |
onValueChange | (List<String>) -> Unit | - |
modifier | Modifier | Modifier |
moveUpLabel | String | "Move up" |
moveDownLabel | String | "Move down" |
item | @Composable ReorderListScope.(String) -> Unit | - |
ReorderListItem
One row, keyed by its value.
| Parameter | Type | Default |
|---|---|---|
modifier | Modifier | Modifier |
content | @Composable RowScope.() -> Unit | - |
ReorderListHandle
The grip that starts a drag.
| Parameter | Type | Default |
|---|---|---|
modifier | Modifier | Modifier |
contentDescription | String | "Reorder" |


