Skip to content

Split Panel ​

Loading...

flint-split-panel — Two adjacent panels separated by a draggable divider.

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

Import ​

ts
import '@getufy/flint-ui'; // auto-registers all
// or
import { FlintSplitPanel } from '@getufy/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.
verticalverticalbooleanfalseVertical layout — start/end panels are stacked top/bottom.
disableddisabledbooleanfalsePrevent the divider from being repositioned.
primaryprimary'start' | 'end' | undefined—Designates a primary panel that maintains its pixel size when the
snapsnapstring | SnapFunction''Space-separated snap positions (Npx, N%, repeat(Npx), repeat(N%)),
snapThresholdsnap-thresholdnumber12How close (px) the divider must be to a snap point before snapping. Default: 12.

Events ​

EventDetailDescription
flint-split-panel-reposition&#123; position: number; positionInPixels: number &#125;Emitted when the divider position changes. Detail: &#123; position: number; positionInPixels: number &#125;.

Slots ​

NameDescription
startContent for the start (left/top) panel.
endContent for the end (right/bottom) panel.
dividerCustom handle icon rendered inside the divider.

CSS Parts ​

NameDescription
startThe start panel wrapper.
endThe end panel wrapper.
panelTargets both start and end panel wrappers.
dividerThe divider element.

CSS Custom Properties ​

PropertyDefault
--flint-split-panel-divider-width—
--flint-split-panel-divider-hit-area—
--flint-split-panel-divider-color—
--flint-split-panel-divider-hover-color—
--flint-split-panel-min—
--flint-split-panel-max—