UNPKG

@sanity/form-builder

Version:
18 lines 1.05 kB
import React from 'react'; export declare const MOVING_ITEM_CLASS_NAME = "moving"; export declare const DRAG_HANDLE_ATTRIBUTE = "data-drag-handle"; declare type ExposedSortableProps = { onSortStart?: () => void; onSortEnd?: (event: { newIndex: number; oldIndex: number; }) => void; }; export declare function sortableHandle<Props>(Component: React.ComponentType<Props>): React.ComponentType<Props>; export declare function sortableItem<Props>(Component: React.ComponentType<Props>): React.ComponentType<Props & { index: number; }>; export declare function sortableGrid<Props>(Component: React.ComponentType<Props>): React.ForwardRefExoticComponent<React.PropsWithoutRef<Props & ExposedSortableProps> & React.RefAttributes<React.ComponentType<Props>>>; export declare function sortableList<Props>(Component: React.ComponentType<Props>): React.ForwardRefExoticComponent<React.PropsWithoutRef<Props & ExposedSortableProps> & React.RefAttributes<React.ComponentType<Props>>>; export {}; //# sourceMappingURL=sortable.d.ts.map