react-select-items
Version:
React library for selecting multiple items
19 lines (18 loc) • 744 B
TypeScript
import { SelectionOptions } from './types';
interface SelectStore {
selectedIndexes: Set<number>;
setSelectedIndexes: (indexes: Set<number>) => void;
focusedIndex: number;
setFocusedIndex: (index: number) => void;
selectionOptions: Required<SelectionOptions>;
setSelectionOptions: (options: SelectionOptions) => void;
dragBoxElement: HTMLDivElement | null;
setDragBoxElement: (element: HTMLDivElement | null) => void;
isDragging: boolean;
setIsDragging: (isDragging: boolean) => void;
}
declare const SelectProvider: ({ children }: {
children: React.ReactNode;
}) => import("react/jsx-runtime").JSX.Element;
declare const useSelectStore: () => SelectStore;
export { SelectProvider, useSelectStore };