#10852·marimo

Add an option to marimo.ui.array to make it sortable

Author: vseyCreated Sep 15, 2026Updated Sep 16, 2026
Labelsenhancementneeds discussion

Description

Hi, I'm building an UI with Marimo, which can display various layers on top of an image. I want to represent the layers in the UI as an array. It'd be great if we could rearrange the layers in the UI using drag and drop. You could do this by adding a sortable option to the array, which would let you rearrange the array in the UI. Then you could do the process by calling callbacks after sorting.

Are you willing to submit a PR? (You must receive approval from the team before submitting a PR.)

  • Yes

Alternatives

Create a custom anywidget which can be sorted

Additional context

No response