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
Name | Type | Default value |
---|---|---|
position | "bottom-right" | 'bottom-right' |
defaultResizableRootProps
const
defaultResizableRootProps:object
Type declaration
Name | Type | Default value |
---|---|---|
aspectRatio | null | null |
height | null | null |
onSizeChange | null | null |
onSizeChangeEnd | null | null |
onSizeChangeStart | null | null |
width | null | null |