prosekit/extensions/drop-cursor
Interfaces
Section titled “Interfaces”DropCursorOptions
Section titled “DropCursorOptions”Properties
Section titled “Properties”-
color?:string|false -
The color of the cursor. Use
falseto apply no color and rely only on class.Default
Section titled “Default”'black'
-
width?:number -
The precise width of the cursor in pixels.
Default
Section titled “Default”1
-
class?:string -
A CSS class name to add to the cursor element.
Functions
Section titled “Functions”defineDropCursor()
Section titled “defineDropCursor()”-
function defineDropCursor(options?:DropCursorOptions):PlainExtension -
Show up a decoration at the drop position when something is dragged over the editor.
See prosemirror-dropcursor for more information.
You probably want to use
<DropIndicator />component instead of this extension.