Tabs·续12
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/images/format.mdx">src/content/partials/images/format.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/images/gamma.mdx">src/content/partials/images/gamma.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/images/gravity.mdx">src/content/partials/images/gravity.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/images/height.mdx">src/content/partials/images/height.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/images/metadata.mdx">src/content/partials/images/metadata.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/images/onerror.mdx">src/content/partials/images/onerror.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/images/quality.mdx">src/content/partials/images/quality.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/images/rotate.mdx">src/content/partials/images/rotate.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/images/saturation.mdx">src/content/partials/images/saturation.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/images/segment.mdx">src/content/partials/images/segment.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/images/sharpen.mdx">src/content/partials/images/sharpen.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/images/slow-connection-quality.mdx">src/content/partials/images/slow-connection-quality.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/images/trim.mdx">src/content/partials/images/trim.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/images/upscale.mdx">src/content/partials/images/upscale.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/images/width.mdx">src/content/partials/images/width.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/images/zoom.mdx">src/content/partials/images/zoom.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/learning-paths/zero-trust/device-profiles.mdx">src/content/partials/learning-paths/zero-trust/device-profiles.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/load-balancing/confirm-pool-health.mdx">src/content/partials/load-balancing/confirm-pool-health.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/logs/check-log-retention.mdx">src/content/partials/logs/check-log-retention.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/logs/disable-log-retention.mdx">src/content/partials/logs/disable-log-retention.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/logs/enable-log-retention.mdx">src/content/partials/logs/enable-log-retention.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/networking-services/mconn/maintenance/appliance-operations.mdx">src/content/partials/networking-services/mconn/maintenance/appliance-operations.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/r2/create-bucket-steps.mdx">src/content/partials/r2/create-bucket-steps.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/realtime/realtimekit/common/installation.mdx">src/content/partials/realtime/realtimekit/common/installation.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/rules/transform/terraform-managed-transforms-example.mdx">src/content/partials/rules/transform/terraform-managed-transforms-example.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/ssl/enable-always-use-https.mdx">src/content/partials/ssl/enable-always-use-https.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/ssl/keyless-key-server-setup.mdx">src/content/partials/ssl/keyless-key-server-setup.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/terraform/create-r2-buckets.mdx">src/content/partials/terraform/create-r2-buckets.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/waf/leaked-credentials-detection-enable.mdx">src/content/partials/waf/leaked-credentials-detection-enable.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/workers/compute-per-request.mdx">src/content/partials/workers/compute-per-request.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/workers/service-binding-rpc-example.mdx">src/content/partials/workers/service-binding-rpc-example.mdx</a>
- <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/workers/service-binding-rpc-functions-example.mdx">src/content/partials/workers/service-binding-rpc-functions-example.mdx</a>
</details>
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:
- Dashboard / API / Terraform
- Different code syntax styles
- Account-level vs zone-level navigation
- GRE / IPsec tunnels
Additional guidance
The primary answer or core instruction should always appear in the main content flow, not exclusively inside a tab or collapsible section.
Use tabs for platform-specific variations (for example, Dashboard versus API versus Terraform) only after stating the general concept. Use Details for supplementary information, not for the primary answer.
import { Tabs, TabItem } from "~/components";
<Tabs>
<TabItem label="Stars" icon="ph:star">
Sirius, Vega, Betelgeuse
</TabItem>
<TabItem label="Moons" icon="ph:moon">
Io, Europa, Ganymede
</TabItem>
</Tabs>
Tab icons
Optionally, you can choose a corresponding icon from Starlight’s Icons ↗︎ for tab labels.
Synchronize Tabs
If you have tabs that follow a particular pattern (Dashboard / API / Terraform), add a syncKey parameter that includes a string value.
We use the following syncKey values in our docs:
dashPlusAPI: Dashboard / API / TerraformworkersExamples: For different code language tabs in the Workers docs (JavaScript, TypeScript, Python, Rust)
Example
import { Tabs, TabItem } from "~/components";
<Tabs syncKey="dashPlusAPI"> <TabItem label="Dashboard">
Dash instructions
</TabItem> <TabItem label="API">
API instructions
</TabItem> </Tabs>
Will synchronize with:
Dash instructions
API instructions
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/style-guide/build-the-page/components/tabs/#page","headline":"Tabs","description":"Display content in switchable tab panels.","url":"https://developers.cloudflare.com/style-guide/build-the-page/components/tabs/","inLanguage":"en","image":"https://developers.cloudflare.com/style-guide/build-the-page/components/tabs/og.png?v=0377922730d03258","dateModified":"2026-08-20","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Components for styling type information for CLI/function parameters. title: Type highlighting image: https://developers.cloudflare.com/style-guide/build-the-page/components/type-highlighting/og.png?v=601886cd0e025d67
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/style-guide/llms.txt
Use this file to discover all available pages before exploring further.
Docs