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.

Left

Align all content and text to the left

Center

Align all content and text to the center

Right

Align all content and text to the right

<Section>
<SectionHeader
title="Left"
subtitle="Align all content and text to the left"
/>
</Section>
<Section align="center">
<SectionHeader
title="Center"
subtitle="Align all content and text to the center"
/>
</Section>
<Section align="right">
<SectionHeader
title="Right"
subtitle="Align all content and text to the right"
/>
</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>

Prop to set the component as the first section on a page. This changes the text font sizes and spacing between elements.

Header

Prop for the first section of a page.

<Section header>
<SectionHeader
title="Header"
subtitle="Prop for the first section of a page."
/>
</Section>