Elements

Components

Order List

A ledger the reader may rewrite: rows move by grip or by the side arrows, and the group reports the new order as the value itself — the model is the order. Dragging rides the native drag events — a hairline of primary ink marks the seam the row will land on — so touch keeps the buttons as its route.

#Basic usage

order-list/basic Vue React
  1. Prelude
  2. Fugue
  3. Interlude
  4. Coda
prelude → fugue → interlude → coda

#Props

#OrderList

A ledger the reader may rewrite: rows move by grip or by the side arrows, and the group reports the new order as the value itself — the model is the order. Dragging rides the native drag events — a hairline of primary ink marks the seam the row will land on — so touch keeps the buttons as its route.

PropTypeDefaultDescription
modelValueArray as PropType<string[]>The rows in their current order — the value is the order.
optionsArray as PropType<OrderOption[]>Every row the ledger knows, in no particular order.
labelStringundefined—