Layouts

Box

Base box component.

I am a box.

With properties

I am a box.

Component props

NameType
displayResponsive<"block" | "inline-block" | "none">
positionResponsive<"static" | "relative" | "absolute" | "fixed" | "sticky">
backgroundColorstring
borderSizeResponsive<"1" | "2" | "3" | "4">
borderRadiusResponsive<"1" | "2" | "3" | "4" | "5" | "6">
paddingResponsive<Spacing>
paddingXResponsive<Spacing>
paddingYResponsive<Spacing>
paddingTopResponsive<Spacing>
paddingRightResponsive<Spacing>
paddingBottomResponsive<Spacing>
paddingLeftResponsive<Spacing>
marginResponsive<Spacing>
marginXResponsive<Spacing>
marginYResponsive<Spacing>
marginTopResponsive<Spacing>
marginRightResponsive<Spacing>
marginBottomResponsive<Spacing>
marginLeftResponsive<Spacing>
widthResponsive<string>
minWidthResponsive<string>
maxWidthResponsive<string>
heightResponsive<string>
minHeightResponsive<string>
maxHeightResponsive<string>
flexBasisResponsive<string>
flexGrowResponsive<string>
flexShrinkResponsive<string>
gridRowResponsive<string>
gridColumnResponsive<string>
orderResponsive<number>
asstring
asChildboolean