Section

The Section component helps in handling overall layout of a page.

Usage

Use the Section in combination to create a layout.

Basic Usage

<Box style={{ backgroundColor: 'var(--color-accent-2)' }}>
<Section py="8">
<Box width="100%" height="12" style={{ backgroundColor: 'var(--color-accent-4)' }} />
</Section>
</Box>

API

Props

PropTypeDefaultRequired
classNamestring--
styleCSSProperties--
childrenReactNode--
spaceSpaceValue0-
MarginPropsToken<MarginProps>--
PaddingPropsToken<PaddingProps>--
displayResponsive<DisplayValue>--
LayoutPropsToken<LayoutProps>--
Layout
Previous
Split Pane
Next