Skip to content

prosekit/web/resizable

ResizableHandleElement

Renames and re-exports ResizableHandle

ResizableRootElement

Renames and re-exports ResizableRoot

ResizableHandleProps

Properties

position

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

The position of the handle.

Default
ts
"bottom-right"

ResizableRootProps

Properties

aspectRatio

aspectRatio: null | number

height

height: null | number

onSizeChange

onSizeChange: null | (size) => void

onSizeChangeEnd

onSizeChangeEnd: null | (size) => void

onSizeChangeStart

onSizeChangeStart: null | (size) => void

width

width: null | number


defaultResizableHandleProps

const defaultResizableHandleProps: object

Type declaration

NameTypeDefault value
position"bottom-right"'bottom-right'

defaultResizableRootProps

const defaultResizableRootProps: object

Type declaration

NameTypeDefault value
aspectRationullnull
heightnullnull
onSizeChangenullnull
onSizeChangeEndnullnull
onSizeChangeStartnullnull
widthnullnull