prosekit/preact/resizable
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"
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
function ResizableHandle(props: RenderableProps<Partial<ResizableHandleProps> & RefAttributes<ResizableHandleElement> & HTMLAttributes<ResizableHandleElement>>, context?: any): ComponentChildren
function ResizableRoot(props: RenderableProps<Partial<ResizableRootProps> & RefAttributes<ResizableRootElement> & HTMLAttributes<ResizableRootElement>>, context?: any): ComponentChildren