Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
27 lines
886 B
Plaintext
27 lines
886 B
Plaintext
import React from 'react';
|
|
import { ClientRect, UniqueIdentifier } from '@dnd-kit/core';
|
|
import type { Disabled, SortingStrategy } from '../types';
|
|
export interface Props {
|
|
children: React.ReactNode;
|
|
items: (UniqueIdentifier | {
|
|
id: UniqueIdentifier;
|
|
})[];
|
|
strategy?: SortingStrategy;
|
|
id?: string;
|
|
disabled?: boolean | Disabled;
|
|
}
|
|
interface ContextDescriptor {
|
|
activeIndex: number;
|
|
containerId: string;
|
|
disabled: Disabled;
|
|
disableTransforms: boolean;
|
|
items: UniqueIdentifier[];
|
|
overIndex: number;
|
|
useDragOverlay: boolean;
|
|
sortedRects: ClientRect[];
|
|
strategy: SortingStrategy;
|
|
}
|
|
export declare const Context: React.Context<ContextDescriptor>;
|
|
export declare function SortableContext({ children, id, items: userDefinedItems, strategy, disabled: disabledProp, }: Props): JSX.Element;
|
|
export {};
|