Module / v1.0.0-beta.7

@typed/ui/WindowSplitter

10 unique exports available through this public import path, including their members and aliases.

Learn this UI primitive →

import * as WindowSplitter from "@typed/ui/WindowSplitter";

Bounded resizing

  • adjust

    function

    Adds a delta and clamps the resulting splitter value.

  • setValue

    function

    Sets and clamps the current splitter value.

Collapse and restore

  • toggleCollapsed

    function

    Collapses to min or restores the recorded collapse value.

Pane sizing state

  • InitialState

    interface

    Initial splitter range and keyboard configuration.

  • State

    interface

    Current value and keyboard policy for a window splitter.

  • StateSchema

    variable

    Schema for the structural splitter hydration state.

  • makeState

    function

    Creates hydrated splitter state and clamps the initial value.

Resize axis

  • Orientation

    type-alias

    Visual orientation of the separator between panes.

Resize separator