Window

A movable, resizable non-modal window with a controlled title and keyboard controls.

Window

Move and resize

Drag the title to move; drag an edge or corner to resize. Each window retains its own input. Use the pencil action to rename.

Click the title, or use Tab to focus it, then press arrow keys to move. Click a resize handle, or Tab to the lower-right handle, then press arrow keys to resize. Hold Shift with an arrow key for a five-times larger step (50px by default).

While dragging or resizing with the mouse button still held, press Escape to return to the starting position and size. Once released, the gesture is committed. Arrow keys inside an input continue to edit text. The parent needs positioning and a definite height.

Shape

Compare rounded and square geometry with the same interactions.

Content lifecycle

Window does not manage routing, caching or refresh. The application controls content mounting and closing; place a restore action in the actions slot. Keep the same component instance when relocating an existing page, and explicitly restore scroll and focus. Size-sensitive content should observe its actual container.

API

PROPS

Property
Type
Values
Description
default
Example
More
rect
{ xywidthheight }
Position and size; supports v-model:rect.
{ x: 24, y: 24, width: 640, height: 480 }
title
String
—
Window title; supports v-model:title.
—
min-width
Number
—
Minimum width in pixels; takes precedence over a smaller workspace.
280
min-height
Number
—
Minimum height in pixels, at least 48.
180
draggable
Boolean
—
Allow dragging and keyboard movement.
true
resizable
Boolean
—
Allow eight-direction resizing and keyboard resizing.
true
boundary
Boolean
—
Constrain to the parent container; minimum size can overflow a smaller workspace.
true
active
Boolean
—
Show active feedback.
false
z-index
Number
—
Stacking order managed by the application.
1
title-editable
Boolean
—
Show rename action; blank names are not saved.
false
keyboard-step
Number
—
Arrow-key step; Shift multiplies it by five.
10
shape
rounded | square
Geometry follows shared configuration.
rounded

EVENTS

Event
Type
Description
default
Example
More
update:rect
(rect: ) => void
Position or size changes.
—
update:title
(title: string) => void
Rename confirmed.
—
activate
() => void
Pointer or keyboard activates the window.
—
drag-start
(rect: ) => void
Interaction boundary; end carries the final rectangle.
—
drag-end
(rect: ) => void
Interaction boundary; end carries the final rectangle.
—
resize-start
(rect: ) => void
Interaction boundary; end carries the final rectangle.
—
resize-end
(rect: ) => void
Interaction boundary; end carries the final rectangle.
—

SLOTS

Slot
Description
default
Example
More
default
Window content.
—
title
Custom title.
—
actions
Window actions.
—

EXPOSES

Method
Type
Description
default
Example
More
focus
() => void
Focus the title move button.
—
rename
() => void
Start editing the title.
—
Last Updated: 2026-10-28, 06:17:56 UTC
Copied