Saltar al contenido
Foldocs
En esta páginaPackage boundary

Headless components

Compose documentation navigation and content with Foldkit views and typed state.

Fumadocs exposes React hooks and components from its Core package. Foldocs keeps the same responsibilities headless but expresses them through pure Core helpers, Foldkit views, and explicit application messages.

CapabilityFoldocs API
Breadcrumb contextnavigationContextForUrl from foldocs-core
Documentation shelldocsLayout from foldocs-ui
Landing shelllandingLayout from foldocs-ui
Markdown linksrenderMarkdown from foldocs-ui
Table of contentsCompiledPage.toc plus DocsLayoutActions.selectToc

There are no React providers or hooks. State stays in the Effect/Foldkit program, and view functions remain deterministic.

Package boundary

foldocs-core derives serializable navigation state. foldocs-ui turns that state into Foldkit HTML. The foldocs runtime owns browser effects such as scrolling, intersection observation, clipboard access, and URL navigation.

Last updated 2 ago 2026