Skip to content

Resizable ​

Horizontal

Loading...

Three Panels

Loading...

<flint-resizable-group> ​

Resizable Group: a container that enables resizable panels with draggable handles.

  • Tag: <flint-resizable-group>
  • Class: FlintResizableGroup

Import ​

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

Usage ​

html
<flint-resizable-group></flint-resizable-group>

Properties ​

PropertyAttributeTypeDefaultDescription
orientationorientation'horizontal' | 'vertical''horizontal'Layout direction — 'horizontal' (row) or 'vertical' (column).
dirdir'ltr' | 'rtl''ltr'Text direction for RTL support.

Events ​

EventDetailDescription
flint-resizable-change—Fired when panel sizes change via drag or keyboard.
flint-resizable-collapse—Fired when a panel is collapsed.
flint-resizable-expand—Fired when a collapsed panel is expanded.

Slots ​

NameDescription
(default)Default slot for content

Methods ​

MethodDescription
getLayout(): number[]Returns a snapshot of panel sizes as percentages (0-100).

<flint-resizable-panel> ​

  • Tag: <flint-resizable-panel>
  • Class: FlintResizablePanel

Import ​

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

Usage ​

html
<flint-resizable-panel></flint-resizable-panel>

Properties ​

PropertyAttributeTypeDefaultDescription
sizesizenumber0Current size as percentage (0–100).
defaultSizedefault-sizenumber0Default size — applied once on first update.
minSizemin-sizenumber0Minimum size percentage (0–100).
maxSizemax-sizenumber100Maximum size percentage (0–100).
collapsiblecollapsiblebooleanfalseWhether the panel can collapse to zero size via drag.
collapsedcollapsedbooleanfalseWhether the panel is currently collapsed via the programmatic API. Set automatically by collapse() / expand() / toggle().

Slots ​

NameDescription
(default)Default slot for content

Methods ​

MethodDescription
collapse()Collapse this panel to zero size, transferring its space to the adjacent sibling. Sets collapsed = true and stores the current size for expand(). No-op if already collapsed.
expand()Expand this panel back to its previous size (or defaultSize as fallback). Sets collapsed = false. No-op if not currently collapsed.
toggle()Toggle between collapsed and expanded states.

<flint-resizable-handle> ​

  • Tag: <flint-resizable-handle>
  • Class: FlintResizableHandle

Import ​

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

Usage ​

html
<flint-resizable-handle></flint-resizable-handle>

Properties ​

PropertyAttributeTypeDefaultDescription
withHandlewith-handlebooleanfalseShow a visible drag grip.
disableddisabledbooleanfalseDisable interaction.
orientationorientation'horizontal' | 'vertical''horizontal'