Documentation Page Components, Partials, Steps and Dashboard Links
How Cloudflare’s developer docs use page components—when to pick Render, Steps, Tabs, DashButton, and reference blocks.
This page summarizes Cloudflare Developers documentation on build-the-page components: what each control is for, how often it appears in production docs, and how partials tie the system together. It is aimed at contributors and anyone mirroring Cloudflare’s patterns—not at end-user product configuration (for that, follow the linked product guides).
Component usage at a glance: which patterns dominate
Section titled “Component usage at a glance: which patterns dominate”Cloudflare publishes adoption counts on the Components usage index. The numbers are a practical signal: high page coverage usually means “match sibling docs,” not “optional decoration.”
| Component | Uses | Pages | Typical role |
|---|---|---|---|
Render |
3985 | 1873 | Include shared partials |
TabItem / Tabs |
2892 / 1288 | 664 | Parallel ways to do the same task |
DashButton |
1424 | 900 | Open dashboard deeplink from a task |
Type |
1653 | 83 | Dense API / field reference tokens |
TypeScriptExample |
1645 | 414 | Copy-paste TypeScript samples |
Details |
1024 | 351 | Collapsible optional depth |
Steps |
1004 | 495 | Numbered procedures |
PackageManagers |
763 | 354 | Install / cf CLI commands |
WranglerConfig |
783 | 453 | Wrangler TOML ↔ JSONC in docs |
APIRequest |
709 | 281 | REST request examples |
GlossaryTooltip |
668 | 455 | Inline definitions from glossary YAML |
DirectoryListing |
628 | 622 | Auto list of child pages in a section |
LinkCard / LinkTitleCard |
485 / 351 | 141 / 91 | Hub and “next step” cards |
LinkButton |
136 | 73 | In-docs CTAs (stays on developers.cloudflare.com) |
Description |
111 | 111 | One-line product overview blurbs |
Example |
203 | 115 | Boxed demos separate from body text |
Feature |
264 | 70 | Feature name + “Use …” button |
Plan |
75 | 71 | Plan requirement badges on overviews |
Stream / YouTube |
47 / 36 | 45 / 36 | Embedded video on concepts and learning paths |
Card |
33 | 31 | Learning-path style cards (via Nimbus) |
The Render component is used 3985 times on 1873 pages.
— Cloudflare, Build the page — Components — Usage
For a full component catalog and per-component “pages that use X” lists, start at Build the page components and the usage sections.
Render and partials: one snippet, many product pages
Section titled “Render and partials: one snippet, many product pages”What is a partial in Cloudflare docs?
Section titled “What is a partial in Cloudflare docs?”A partial is a reusable documentation snippet under src/content/partials/… that multiple product pages include so dashboard steps, API flows, and policy wizards stay consistent. The Render component pulls a partial onto a page and can pass parameters for small variations.
The Render component allows us to include a “partial”, a reusable Markdown snippet, onto a page.
It also accepts parameters that can be used as variables within the partial, so that even content which needs slight differences between usages can be turned into a partial.
— Cloudflare, Render
The same partial families often appear beside APIRequest (REST), DashButton (dashboard), and Steps (numbered flow)—for example Gateway policy partials, WAF enablement, DNS record steps, and Workers Wrangler command snippets. Editing a partial updates every page that **Render**s it.
Procedures vs parallel options: Steps, Details, and Tabs
Section titled “Procedures vs parallel options: Steps, Details, and Tabs”When to use Steps for get-started and how-to pages
Section titled “When to use Steps for get-started and how-to pages”Steps wraps a numbered list for sequential work (create account, enable WAF, create a D1 database). It appears on hundreds of get-started guides—for example Create account, D1 get started, and Turnstile get started.
Import pattern on Cloudflare’s site:
import { Steps } from "~/components";
<Steps>1. First action2. Second action</Steps>When to use Details for collapsible supplementary content
Section titled “When to use Details for collapsible supplementary content”Use Details when information belongs in context but should not compete with the main path—advanced settings, Terraform notes, FAQs.
When you want to provide additional information in context, but you do not want it to clutter up the more important content, use
<Details>to add a collapsible container.— Cloudflare, Details
Props include header and optional open={true} to expand by default. See Cache rules settings and HTTP policies for live patterns.
When Cloudflare docs use Tabs (Dashboard, API, Terraform)
Section titled “When Cloudflare docs use Tabs (Dashboard, API, Terraform)”Tabs group alternatives for the same outcome, not unrelated topics. Documented patterns include Dashboard vs API vs Terraform, different code syntax styles, account-level vs zone-level navigation, and tunnel types (GRE / IPsec).
This component can help you create a tabbed interface to show related information more efficiently. Use it when there are different ways of getting the same thing done:
— Cloudflare, Tabs
TabItem child panels share the same 664 pages as Tabs in the usage index. Heavy use appears on SSL/TLS modes, Workers runtime examples, identity providers, and Gateway policy docs.
DashButton and dashboard deeplinks: open the right screen from a doc
Section titled “DashButton and dashboard deeplinks: open the right screen from a doc”Why DashButton is the default dashboard link pattern
Section titled “Why DashButton is the default dashboard link pattern”DashButton is the most common single-task affordance in the docs (1424 uses on 900 pages)—cache purge, WAF deploy, DNS records, Zero Trust tunnels, and similar flows.
This component creates a LinkButton that links to a Cloudflare dashboard deeplink.
While we recommend the use of DashButton, you can continue to use deeplinks (as a link, without the component), if necessary.
— Cloudflare, DashButton
LinkButton stays on the documentation site (get started, secondary actions). DashButton sends the reader to the dashboard—with account, zone, profile, or Zero Trust routes such as https://one.dash.cloudflare.com.
| URL pattern | Meaning | Example url shape |
|---|---|---|
/?to=/:account/… |
Account-scoped | Workers, API tokens |
/?to=/:account/:zone/… |
Zone-scoped | DNS records, WAF overview |
https://one.dash.cloudflare.com |
Zero Trust home | Access, Gateway, tunnels |
/profile/… |
User profile | API tokens, sessions |
dash-routes/index.json and build failures
Section titled “dash-routes/index.json and build failures”Available dashboard paths are generated into src/content/dash-routes/index.json by a periodically run script. DashButton fails the build if url is not listed there.
The DashButton will fail to build if you edit the url prop to a route that is not listed in the index.json file.
Additionally, each run of the script overwrites the previous /dash-routes/index.json file.
— Cloudflare, DashButton
Manual edits to index.json are discouraged unless the dashboard link is already live and the route name is stable with little rollback risk. The DashButton component page lists Core Routes, zone-level, profile, and Zero Trust buttons generated from valid routes.
Reference and code blocks: Type, TypeScriptExample, WranglerConfig, APIRequest
Section titled “Reference and code blocks: Type, TypeScriptExample, WranglerConfig, APIRequest”Type on dense API and rules reference pages
Section titled “Type on dense API and rules reference pages”Type highlights types, parameters, and JSON field names inline. It concentrates on 83 reference pages (~20 uses per page)—for example Wrangler configuration, D1 Worker API, Rulesets API JSON object, and WAF rate limiting parameters.
For rules expressions, field names and plan gates live in the Fields reference (categories include Bots, WAF, LLM prompt, schema validation, mTLS)—do not duplicate the full catalog in prose; link and match spelling exactly.
TypeScriptExample for Workers and Agents tutorials
Section titled “TypeScriptExample for Workers and Agents tutorials”TypeScriptExample is the standard wrapper for TypeScript samples on 414 pages—Agents quick start, Durable Objects, RPC, Sandbox SDK, and AI Gateway guides (Agents quick start, Workers RPC).
WranglerConfig for TOML and JSONC without duplicating tutorials
Section titled “WranglerConfig for TOML and JSONC without duplicating tutorials”WranglerConfig keeps Wrangler configuration docs in sync across formats:
This component can be used to automatically generate a jsonc version of the toml file (or vice versa) of the Cloudflare Wrangler configuration file.
— Cloudflare, WranglerConfig
It appears on binding and get-started docs across Workers, Pages Functions, D1, Queues, R2, Hyperdrive, and Containers—for example Workers Wrangler configuration and Pages Functions wrangler configuration.
APIRequest and install commands
Section titled “APIRequest and install commands”APIRequest embeds REST examples on WAF, DNS, Logpush, Cloudflare One, and ruleset API pages (WAF custom rules create API, Rulesets API create). Snippets often live in shared partials under src/content/partials/….
PackageManagers shows reviewed install lines for Wrangler and the cf CLI; cfCommand equivalents must begin with cf. Example boxes illustrative content so it is not confused with body copy.
Use the
<Example>component to add a box around some content. This can be useful when you want to demonstrate or showcase something without it being confused by the surrounding text.— Cloudflare, Example
Hub pages, navigation, terminology, and media
Section titled “Hub pages, navigation, terminology, and media”Description, DirectoryListing, and link cards on landing pages
Section titled “Description, DirectoryListing, and link cards on landing pages”- Description — one overview blurb at product roots (DNS, WAF, Workers framework guides).
- DirectoryListing — auto-generated child links for section indexes (Agents concepts, Wrangler commands).
Use
<DirectoryListing />to display the directory of a specific folder, which appears as a list of links.— Cloudflare, Directory listing
LinkCard and CardGrid (see usage for CardGrid counts) structure hubs and next steps (Agents getting started, R2 get started). Feature pairs a feature title with a “Use …” link button on product overviews.
Plan badges (pro, business, ent-add-on, beta, etc.) state plan requirements on overview pages:
The plan component lets you define what type of plan your product needs. Use it in the main Overview page of your product, or in a page where you need to talk about a specific feature with additional requirements.
— Cloudflare, Plan
Card is rarer and described as a Nimbus-built-in component on Cloudflare’s stack.
GlossaryTooltip and official term definitions
Section titled “GlossaryTooltip and official term definitions”GlossaryTooltip pulls definitions from glossary YAML; the term attribute selects the entry, and child text is the visible word.
Use this component to add tooltips to words in your markdown files. The info for the tooltips is pulled in from the glossary yaml file.
— Cloudflare, Glossary tooltip
Readers looking up terms use the site-wide Glossary (term, definition, product column). Product-scoped lists include Cloudflare One glossary and Fundamentals glossary. Authors maintain entries per Glossary entry attributes.
When explaining security metrics in docs, keep official distinctions—for example bot score (1–29 likely automated, 30–99 likely human) vs attack score, and note threat score is documented as always 0 on the Glossary. Rules recipe titles (not full templates here) are indexed at Rules examples (cache rules examples are listed separately on that page).
Stream vs YouTube for embedded video
Section titled “Stream vs YouTube for embedded video”Stream embeds Cloudflare-hosted learning and concept video (How Cloudflare works). YouTube embeds by video id:
import { YouTube } from "~/components";
<YouTube id="XHvmX3FhTwU" />Both are sparse compared with text components; learning paths such as Durable Objects course intro illustrate typical placement.
Common mistakes when matching Cloudflare doc patterns
Section titled “Common mistakes when matching Cloudflare doc patterns”- Setting
DashButtonurlto a dashboard path that is not inindex.json—local docs build fails. - Confusing
LinkButton(on-site navigation) withDashButton(dashboard). - Putting primary setup steps inside
Detailsinstead of visibleStepsor body text. - Using
Tabsfor a linear checklist rather than parallel channels (Dashboard / API / Terraform). - Hand-maintaining duplicate Wrangler TOML and JSONC blocks instead of WranglerConfig.
- Citing Enterprise-only rule fields in examples for lower plans—check plan labels in Fields reference.
- Duplicating long flows instead of a shared partial included via
Render.
How to check this on your site
Section titled “How to check this on your site”-
Open Build the page components usage and confirm the component you plan to use matches the page type you are writing (procedure, API reference, or hub).
-
Pick one listed example page in the same product—for dashboard tasks compare Purge cache by tags or WAF managed rules deploy zone dashboard for
DashButton; for procedures compare D1 get started forSteps. -
If you add
DashButton, verify theurlappears on the DashButton route list and that a local docs build succeeds. -
For rules or API copy, cross-check field names against the Fields reference and terms against the Glossary.
-
You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page does not match Cloudflare’s current style guide or you need a clarification, email yimasynthetic@gmail.com with the page URL and the exact statement you are questioning.