{#snippet DraggableRow({ row, index }: { row: Row; index: number })} {@const { ref, isDragging, handleRef } = useSortable({ id: row.original.id, index: () => index })} {#each row.getVisibleCells() as cell (cell.id)} {/each} {/snippet} {#snippet DragHandle({ attach }: { attach: Attachment })} Drag to reorder {/snippet}