Width

Last updated Aug 20, 2026 The Width component is used 8 times on 4 pages.

<details>

<summary>

See all examples of pages that use Width

</summary>

Used 8 times.

Pages

  • <a href="https://developers.cloudflare.com/cloudflare-one/team-and-resources/devices/cloudflare-one-client/configure/modes/device-information-only/">/cloudflare-one/team-and-resources/devices/cloudflare-one-client/configure/modes/device-information-only/</a>-<a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/docs/cloudflare-one/team-and-resources/devices/cloudflare-one-client/configure/modes/device-information-only.mdx">Source</a>
  • <a href="https://developers.cloudflare.com/magic-transit/network-flow/">/magic-transit/network-flow/</a>-<a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/docs/magic-transit/network-flow.mdx">Source</a>

Partials

  • <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/networking-services/mnm-magic-transit-integration.mdx">src/content/partials/networking-services/mnm-magic-transit-integration.mdx</a>
  • <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/style-guide/llms-txt.mdx">src/content/partials/style-guide/llms-txt.mdx</a>

</details>

This component can be used to constrain the width of content, such as text or images.

Import

import { Width } from "~/components";

Usage

import { Width } from "~/components";

<Width size="large">This content will take up 75% of the container width</Width>

<Width size="medium">
    This content will take up 50% of the container width
</Width>

<Width size="small">This content will take up 25% of the container width</Width>

<Width size="small" center>
    This content will take up 25% of the container width and be centered
</Width>

<Width> Props

size

required

type: "large" | "medium" | "small"

Controls the width of the container:

  • large: 75% of container width
  • medium: 50% of container width
  • small: 25% of container width

center

type: boolean

Whether to horizontally center the content.

Was this helpful?

YesNo

On this page

Width - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/style-guide/build-the-page/components/width/#page","headline":"Width","description":"Constrain content width for layout control.","url":"https://developers.cloudflare.com/style-guide/build-the-page/components/width/","inLanguage":"en","image":"https://developers.cloudflare.com/style-guide/build-the-page/components/width/og.png?v=8f64ec9ca93040a1","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: Display a single Wrangler command with details. title: WranglerCommand image: https://developers.cloudflare.com/style-guide/build-the-page/components/wrangler-command/og.png?v=0c1ebf46e94062c4


Skip to content

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.