Skip to content

API Reference / @gtkx/components / createTabCollection

Function: createTabCollection() ​

createTabCollection<T>(options): TabCollection<T>

Defined in: packages/components/src/tab-collection.tsx:40

Creates a collection of JSX pages whose React state survives native transfers and source-window closure. Call append from an event handler because it commits synchronously. Page content lives in independent roots: pass context-dependent values through the item or wrap the content in providers.

Type Parameters ​

T ​

T

Parameters ​

options ​

TabCollectionOptions<T>

Returns ​

TabCollection<T>