FormanceCustom component built for Formance products.
Installation#
Install the following dependencies:
Copy and paste the following code into your project.
Update the import paths to match your project setup.
Usage#
Examples#
Horizontal#
Compound Components
Compose the pieces you need:
<Sortable />Root provider with value, onValueChange, orientation, and flatCursor.<SortableContent />Wraps the sortable list items with SortableContext.<SortableItem />Individual draggable item with transform and transition.<SortableItemHandle />Drag handle trigger for a sortable item.<SortableOverlay />Drag overlay rendered in a portal during drag.