UI Library

Resizable

320 × 240
Prop Type Default Value Notes
childrenSnippet—
Content rendered inside the container; the size label reads live, so the dialog edits its class, and the eye resets to the default class.
classNamestring?''
Extra classes for the container.
heightnumber—
Container height in pixels; drive it from onResize.
maxHeightnumber | 'parent'?unbounded
Upper clamp for the container height; 'parent' bounds it to the parent's content box.
maxWidthnumber | 'parent'?unbounded
Upper clamp for the container width; 'parent' bounds it to the parent's content box.
minHeightnumber?0
Lower clamp for the container height.
minWidthnumber?0
Lower clamp for the container width.
pointerOnlyHandlesbooleanfalse
Keeps the drag handles out of the tab order; pointer drags still work.
widthnumber—
Container width in pixels; drive it from onResize.
onResize(width: number, height?: number) => void——Fires while dragging and on arrow-key nudges (`height` is `undefined` in width-only mode).