Skip to main content

Section

Defines a section on a page. A section will always have one SectionHeader and at least one SectionContent child component.

Section title

Optional section subtitle

Here you can add whatever you want, and add as many section content has you want.

<Section>
<SectionHeader
label="Section label"
title="Section title"
subtitle="Optional section subtitle"
actions={
<Button>Action</Button>
}
/>
<SectionContent>
{/* insert content */}
</SectionContent>
</Section>

Props

Align

Change the elements and texts alignement inside the component. You can override that setup for individual SectionContent components.

Start

Align all content and text to the start of the inline axis

Center

Align all content and text to the center

End

Align all content and text to the end of the inline axis
<Section>
<SectionHeader
title="Start"
subtitle="Align all content and text to the start of the inline axis"
/>
</Section>
<Section align="center">
<SectionHeader
title="Center"
subtitle="Align all content and text to the center"
/>
</Section>
<Section align="end">
<SectionHeader
title="End"
subtitle="Align all content and text to the end of the inline axis"
/>
</Section>

Color

Change the background and text color.

Default

Change the background colour to default

Paper

Change the background colour to paper

Primary

Change the background colour to primary

Primary Light

Change the background colour to primary light
<Section>
<SectionHeader
title="Default"
subtitle="Change the background colour to default"
/>
</Section>
<Section color="paper">
<SectionHeader
title="Paper"
subtitle="Change the background colour to paper"
/>
</Section>
<Section color="primary">
<SectionHeader
title="Primary"
subtitle="Change the background colour to primary"
/>
</Section>
<Section color="primaryLight">
<SectionHeader
title="Primary Light"
subtitle="Change the background colour to primary light"
/>
</Section>

Landing

Prop to set the component as the landing section on the homepage. This changes the text font sizes and spacing between elements.

Landing

Prop for the website homepage landing section.
<Section landing>
<SectionHeader
title="Landing"
subtitle="Prop for the website homepage landing section."
/>
</Section>