@live-tabs/core
v0.1.0
Published
Router-agnostic core for live-tabs: workspace-tabs store, registry, headless tab primitives, and the RouterAdapter seam.
Readme
@live-tabs/core
Router-agnostic core for live-tabs — browser-style workspace tabs with kept-alive pages.
This package has no router dependency. It provides:
createWorkspaceTabsStore— the open-tabs store (Zustand).createTabRegistry— a path →{ title, iconKey }resolver.TabStrip,Tab,TabClose— headless, unstyled tab primitives.WorkspaceProvider,WorkspaceTabBar,useSetTabTitle,useAutoOpenTab— driven by aRouterAdapteryou supply.- The
RouterAdapterinterface itself (useAdapter,RouterAdapterProvider).
You normally don't install this directly — use a router adapter package such as
@live-tabs/tanstack-router
(or the live-tabs umbrella), which
re-exports everything here plus a keep-alive engine. Reach for @live-tabs/core
only when building a new router adapter or using the headless primitives alone.
npm i @live-tabs/corePeers:
react,react-dom,zustand.
See the main README for usage.
License
MIT
