Denotes a section of page content.
<Box
py="8"
style={{ backgroundColor: 'var(--gray-a2)', borderRadius: 'var(--radius-3)' }}
>
<DecorativeBox asChild size="2">
<Section />
</DecorativeBox>
</Box>
This component is based on the section
element and supports common margin props.
Prop | Type | Default |
---|---|---|
size | Responsive<"1" | "2" | "3"> | "3" |
display | Responsive<"none" | "block"> |
The following props are shared between Box, Flex, Grid, Container and Section layout components.
Prop | Type | Default |
---|---|---|
p | enum | |
px | enum | |
py | enum | |
pt | enum | |
pr | enum | |
pb | enum | |
pl | enum | |
position | Responsive<"static" | "relative" | "absolute" | "fixed" | "sticky"> | |
inset | Responsive<"auto" | "0" | "50%" | "100%"> | |
top | Responsive<"auto" | "0" | "50%" | "100%"> | |
right | Responsive<"auto" | "0" | "50%" | "100%"> | |
bottom | Responsive<"auto" | "0" | "50%" | "100%"> | |
left | Responsive<"auto" | "0" | "50%" | "100%"> | |
width | enum | |
height | enum | |
shrink | Responsive<"0" | "1"> | |
grow | Responsive<"0" | "1"> |