@hello-pangea/dnd
Version:
Beautiful and accessible drag and drop for lists with React
37 lines (31 loc) • 721 B
text/typescript
export const prefix = 'data-rfd';
export const dragHandle = (() => {
const base = `${prefix}-drag-handle`;
return {
base,
draggableId: `${base}-draggable-id`,
contextId: `${base}-context-id`,
};
})();
export const draggable = (() => {
const base = `${prefix}-draggable`;
return {
base,
contextId: `${base}-context-id`,
id: `${base}-id`,
};
})();
export const droppable = (() => {
const base = `${prefix}-droppable`;
return {
base,
contextId: `${base}-context-id`,
id: `${base}-id`,
};
})();
export const placeholder = {
contextId: `${prefix}-placeholder-context-id`,
};
export const scrollContainer = {
contextId: `${prefix}-scroll-container-context-id`,
};