Skip to content

Split Panel ​

Loading...
  • Tag: <flint-split-panel>
  • Class: FlintSplitPanel

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintSplitPanel } from 'flint-ui';

Usage ​

html
<flint-split-panel></flint-split-panel>

Properties ​

PropertyAttributeTypeDefaultDescription
positionpositionnumber50Divider position as a percentage (0–100). Defaults to 50.
positionInPixelsposition-in-pixelsnumber-1Divider position in pixels from the primary panel's edge. Takes precedence over position when ≥ 0.
verticalverticalbooleanfalseVertical layout — start/end panels are stacked top/bottom.
disableddisabledbooleanfalsePrevent the divider from being repositioned.
primaryprimary'start' | 'end'—Designates a primary panel that maintains its pixel size when the host element is resized. The other panel grows or shrinks to fill. If unset, both panels resize proportionally.
snapsnapstring | SnapFunction''Space-separated snap positions (Npx, N%, repeat(Npx), repeat(N%)), e.g. "100px 50%" or "repeat(100px) 50%". Can also be a SnapFunction for custom snapping logic.
snapThresholdsnap-thresholdnumber12How close (px) the divider must be to a snap point before snapping. Default: 12.

Events ​

EventDetailDescription
flint-split-panel-reposition—

Slots ​

NameDescription
start
divider
end