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