This component can be used to constrain the width of content, such as text or images.
import { Width } from "~/components";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.