Skip to content
GitHubDiscord

prosekit/web/resizable

new ResizableHandleElement(): ResizableHandleElement

position: "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right"

The position of the handle.

"bottom-right"


new ResizableRootElement(): ResizableRootElement

width: number | null

height: number | null

aspectRatio: number | null

position: "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right"

The position of the handle.

"bottom-right"


width: number | null

height: number | null

aspectRatio: number | null


resizeStart: CustomEvent<{ width: number; height: number; }>

resizeEnd: CustomEvent<{ width: number; height: number; }>