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