Skip to content

Latest commit

 

History

History

ui-dom

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

@tanstack/cms-ui-dom

Experimental. This package stays on 0.x and is not covered by the TanStack CMS 1.0 semver guarantee: any release may change or remove its exports. The supported 1.0 stack is TanStack Start with @tanstack/cms-ui-react; Svelte apps can rely on the framework-neutral @tanstack/cms-core, @tanstack/cms-api HTTP API, and @tanstack/cms-client. See the versioning policy.

Framework-agnostic DOM / HTML-string view layer for TanStack CMS — SSR HTML renderers for blocks, Markdown, responsive media, and layout shells, plus Svelte-friendly $store-compatible auth bindings, use: actions, and WebMCP. Usable from Svelte, vanilla DOM, or any framework that can mount an HTML string. Prebuilt .svelte components are out of scope — the @tanstack/cms-ui-svelte name is reserved for those post-1.0.

Exports

  • Blocks & Markdown: BlocksView, BlockView, blocksView (Svelte action), renderBlocksToHtml, renderBlockToHtml, renderMarkdownToHtml
  • Media: MediaImg, mediaImg (Svelte action), mediaImgAttrs, mediaSrcSet
  • Layout Shells: SiteShell, DocsLayout, buildDocsSidebarTree
  • Auth: createCmsAuthStore, setCmsAuthContext, getCmsAuthContext, useCmsAuth, useCan, useCmsAi, createMockAuth, DEFAULT_MOCK_PERSONAS
  • WebMCP: webMcpBadge (Svelte action), startWebMcpServer
  • Vite: tanstackCms from @tanstack/cms-ui-dom/vite
  • Styles: @tanstack/cms-ui-dom/styles.css