Documentation page
Shell, page header and content blocks in the order a reader needs them.
Live preview
Open the full pageSource
This exact file renders the preview above.
components/patterns/documentation.tsx
components/blocks/navigation/documentation.tsx
components/blocks/footers/documentation.tsx
Demo source — adapt to your project. Foundry is not published as a package.
Usage
Show the code, explain the method, list the surface, answer the questions. The previous-and-next footer is what turns a set of pages into a path.
- Keep the outline in flow on mobile rather than hiding it behind a drawer.
- A version and last-updated line is what makes documentation trustable.
Variants and states
Every entry below is a genuine difference in behaviour or layout, and every one of them is visible in the preview above.
- Documentation shell with a section tree
- Page header with version metadata
- Code sample and API surface
- Previous and next footer
Accessibility
- Tree semantics
- Group disclosures carry aria-expanded and the current page carries aria-current.
- Native FAQ
- The question groups use native details elements, so they work without JavaScript.
Foundry implements published ARIA patterns and is tested against them. No WCAG certification is claimed — see the accessibility documentation for what is and is not covered.
Related
All patternsDocumentation starter
A developer documentation site with six article routes, a guide index, an API reference and a working search page.
intermediateFeatured4 variantsDocumentation shell
Header, search and a collapsible section tree that becomes an in-flow outline on mobile.
intermediateFeatured3 variantsCode-sample hero
A developer hero pairing the pitch with a real, valid code sample in a window frame.
starterFeatured3 variants