Back to Radix Ui

Section

data/themes/docs/components/section.mdx

latest649 B
Original Source
jsx
<Box
	py="8"
	style={{ backgroundColor: "var(--gray-a2)", borderRadius: "var(--radius-3)" }}
>
	<DecorativeBox asChild>
		<Section size="2" />
	</DecorativeBox>
</Box>

API Reference

This component is based on the section element and supports common margin props.

<ThemesPropsTable defs="sectionPropDefs" />

The following props are shared between Box, Flex, Grid, Container and Section components. Read more about layout components in Layout.

<ThemesPropsTable defs="layoutPropDefs" />