Skip to content

Resizable ​

Two-pane split

Two panes with a divider people drag — an editor and its preview, a list and its detail. Keep a sensible default size; many people never move it.

Basic
Pane A — 40%
drag, ← →, Home/End, dbl-click resets
Pane B1
Pane B2 (nested vertical)
  • The divider is a focusable separator: arrows move it by step, Home/End go to min/max, Enter or a double-click resets to half.
  • v-model is the first pane's size in %. direction="vertical" stacks the panes. In right-to-left pages the first pane is on the right and dragging follows the pointer.

Usage ​

ts
import { BlessResizable } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
direction"horizontal" | "vertical""horizontal"
minnumber10first pane size in %
maxnumber90
stepnumber2
labelstring"Resize"
modelValuenumber50first pane size in %

Events

NamePayloadDescription
update:modelValue[value: number]

Slots

NameScopeDescription
a—
b—

Released under the MIT License. Character names and artwork belong to their owners.