Width
Width is used 4 times on 2 pages.
This component can be used to constrain the width of content, such as text or images.
import { Width } from "~/components"; This content will take up 75% of the container width
This content will take up 50% of the container width
This content will take up 25% of the container width
This content will take up 25% of the container width and be centered
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>required
type: "large" | "medium" | "small"
Controls the width of the container:
large: 75% of container widthmedium: 50% of container widthsmall: 25% of container width
type: boolean
Whether to horizontally center the content.
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Products
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark