Reorder
Reorder is made of two components. <Reorder.Group> owns the ordered value array, and
<Reorder.Item> renders each draggable row. When the user drags an item, onReorder receives the
new array order.
- Rose⇅
- Violet⇅
- Mint⇅
- Amber⇅
Group props
axis-'x'or'y'values- current array, used to map drag distance to an indexonReorder- called with the new array orderas- tag name (default'ul')
Item props
value- identifier used to look up this row invaluesdrag-true | 'x' | 'y', defaults to the group'saxisas- tag name (default'li')