该组件可用于限制内容(如文本或图像)的宽度。
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>必填
类型:"large" | "medium" | "small"
控制容器的宽度:
large:容器宽度的 75%medium:容器宽度的 50%small:容器宽度的 25%
类型:boolean
是否水平居中内容。