Types
TypeScript types exported by react-splitkit.
All types are re-exported from the package root and can be imported directly:
Layout tree
LayoutNode
The discriminated union that represents the entire layout tree. Use isPanel and isSplit to narrow it:
PanelNode
SplitNode
horizontal = children are laid out left-to-right (columns).
vertical = children are laid out top-to-bottom (rows).
SplitDirection
SplitTarget
Used by usePanel().split(target) and the SPLIT_PANEL action.
Tabs
TabDescriptor
The data object for a single tab. Stored in PanelNode.tabs.
meta is useful for attaching data to a tab without encoding it into tabType:
Registry
TabRegistry
A plain object mapping tabType strings to their registry entries.
TabRegistryEntry
TabRenderContext
Passed as the second argument to registry.render and TabPanel.renderContent. Contains the panel id so the content can call usePanel or dispatch actions back to its own panel.