Components
Resize Handle
ExperimentalExperimental — the contract and the rendering can change without notice. Own the installed copy before shipping it.Edge and corner grip for resizing a positioned box; the host owns the drag math.
Composition
Resizable box
Inside a zoomed canvas, border widths snap to device pixels before the scale applies: draw the rim with --cui-resize-handle-shadow instead, sized by the inverse scale. --cui-resize-handle-radius shapes the grip and its focus ring together.
- positioned box
- <ResizeHandle />
Installation
The Control UI source installs this component from src/registry/sources/control-ui/ui/resize-handle.tsx.
Raw code
Primary installed source
Knobs
Typed custom properties the recipe paints with. Set one on the root — style, a utility class, or a skin — and every slot inherits it.
--cui-resize-handle-* · 8 knobsHow the cascade resolves--cui-resize-handle-size<length-percentage>10px--cui-resize-handle-hit-size<length-percentage>var(--target-min)--cui-resize-handle-background<color>var(--background)--cui-resize-handle-hover-background<color>oklch(from var(--primary) l c h / 0.1)--cui-resize-handle-border-color<color>var(--primary)--cui-resize-handle-border-width<length>var(--control-rim-width)--cui-resize-handle-radius<length-percentage>0px--cui-resize-handle-shadow*none