UNPKG

@atlaskit/pragmatic-drag-and-drop-react-accessibility

Version:

An optional package for Pragmatic drag and drop containing react components to assist with setting up accessible experiences

15 lines (14 loc) • 568 B
import React from 'react'; import type { DragHandleButtonAppearance } from './types'; /** * A button with pre-configured styling to look like a drag handle. * * This component uses a native button because the `@atlaskit/button` * cancels `mouseDown` events, which prevents dragging. */ export declare const DragHandleButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & { appearance?: DragHandleButtonAppearance; label: string; isSelected?: boolean; testId?: string; } & React.RefAttributes<HTMLButtonElement>>;