prosekit/react/resizable
ResizableHandleProps
Props for the ResizableHandle component.
position?: "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right"
The position of the handle.
Default:
"bottom-right"
ResizableRootProps
Props for the ResizableRoot component.
aspectRatio?: null | number
height?: null | number
onResizeEnd?: (event: CustomEvent<{ height: number; width: number }>) => void
onResizeStart?: (event: CustomEvent<{ height: number; width: number }>) => void
width?: null | number
ResizableHandle
ts
function ResizableHandle(props: ResizableHandleProps & RefAttributes<ResizableHandle> & HTMLAttributes<ResizableHandle>): ReactNode
ResizableRoot
ts
function ResizableRoot(props: ResizableRootProps & RefAttributes<ResizableRoot> & HTMLAttributes<ResizableRoot>): ReactNode