The drop cursor extension shows a visual indicator at the drop position when dragging content over the editor.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/prosekit/prosekit/llms.txt
Use this file to discover all available pages before exploring further.
Installation
The drop cursor extension is included in theprosekit package.
Usage
For most use cases, you should use the
<DropIndicator /> component instead, which provides a better visual experience. This extension is a lower-level alternative.API reference
defineDropCursor(options?)
Creates a drop cursor extension that shows a decoration at the drop position.
The color of the cursor. Use
false to apply no color and rely only on class.The precise width of the cursor in pixels.
A CSS class name to add to the cursor element.
Examples
Custom color
Custom styling with CSS class
Related
- Drop indicator - Recommended alternative with better UX
- Gap cursor - Cursor for hard-to-select positions