MCPcopy
hub / github.com/clauderic/dnd-kit / Options

Interface Options

packages/dom/src/core/plugins/accessibility/Accessibility.ts:17–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15import {createLiveRegion} from './LiveRegion.ts';
16
17interface Options {
18 /**
19 * Optional id that should be used for the accessibility plugin's screen reader instructions and announcements.
20 */
21 id?: string;
22 /**
23 * Optional id prefix to use for the accessibility plugin's screen reader instructions and announcements.
24 */
25 idPrefix?: {
26 description?: string;
27 announcement?: string;
28 };
29 /**
30 * The announcements to use for the accessibility plugin.
31 */
32 announcements?: Announcements;
33 /**
34 * The screen reader instructions to use for the accessibility plugin.
35 */
36 screenReaderInstructions?: ScreenReaderInstructions;
37 /**
38 * The number of milliseconds to debounce the announcement updates.
39 *
40 * @remarks
41 * Only the `dragover` and `dragmove` announcements are debounced.
42 *
43 * @default 500
44 */
45 debounce?: number;
46}
47
48const debouncedEvents = ['dragover', 'dragmove'];
49

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected