Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 1.68 KB

README.md

File metadata and controls

28 lines (23 loc) · 1.68 KB

API reference

@dynamix-layout/react

Export What it is
DynamixLayout The component. Most apps only need this.
useDynamixLayout and DynamixLayoutProvider Headless layout: state and prop getters for a custom UI
useTabset One tabset: its panel and tab bar
useTab One tab: its button and its content
useSplitter One splitter
useLayoutState Subscribe to part of the layout state
useLayoutActions Stable actions (move, select, maximize, fold, …)
useDragState The drag in progress
Panel, TabBar, Tab, TabContent, Splitter, DropIndicator, RootDropZone, TabsetToolbar The default slot components, for composing your own (guide)

The React package also re-exports from core: migrateLayoutFromV1, isLayoutV1, DynamixLayoutError and the layout types.

@dynamix-layout/core

Export What it is
createLayout Creates a layout instance (engine)
LayoutJSON The saved-layout format, LAYOUT_VERSION
migrateLayoutFromV1 and isLayoutV1 Convert layouts saved by v1
DynamixLayoutError Thrown for invalid input (codes)
getTabBarPlacement, getTabContentRect, getRootDropZoneRect, applyRect, createFrameScheduler Helpers for writing adapters (guide)
version The package version