For AI agents: the complete documentation index is available at https://rickyshin93.github.io/tao-ui/llms.txt, the full documentation bundle is available at https://rickyshin93.github.io/tao-ui/llms-full.txt, and this page is available as Markdown at https://rickyshin93.github.io/tao-ui/components/splitter.md.
v0.0.57
  • English
  • Splitter

    Layout@rockshin/tao-ui

    Creates resizable panes separated by draggable handles.

    When to use

    Use Splitter for work surfaces where users need to allocate space between adjacent panes.

    Recommended

    • Set sensible min sizes.
    • Persist sizes only when the layout is user-specific.

    Avoid

    • Do not use the component outside its intended interaction model.

    Examples

    Basic usage

    TSX

    Vertical and multiple panels

    TSX

    Collapsible panel

    TSX

    Three panels

    Multiple panels share the available space; drag the adjacent separators to change their proportions.

    TSX

    Collapsible panels

    Collapse and restore supporting panels while retaining the main work area.

    TSX

    Panel size limits

    Constrain resizing with min and max so content remains usable.

    TSX

    Controlled panel sizes

    Observe size changes and keep the layout in application state so it can be reset.

    sizes: []

    TSX

    Nested splitters

    Combine horizontal and vertical splitters into an editor layout with bounded container heights.

    TSX

    API

    Panel

    PropertyDescriptionTypeDefault Value
    styleAdditional styleCSSProperties | undefined-
    classNameAdditional css classstring | undefined-

    Splitter

    PropertyDescriptionTypeDefault Value
    classNameAdditional css classstring | undefined-

    Splitter.Panel

    PropertyDescriptionTypeDefault Value
    styleAdditional styleCSSProperties | undefined-
    classNameAdditional css classstring | undefined-