Section

A band of the page that groups related content, with an optional background. It renders a section element. Put a Container inside it to limit the width of the content.

General

Without a background, a Section is transparent.

Background

Use bg to paint the whole band, and a Container to keep the content narrow.

APIs

Section.Props

AttributeDescriptionTypeAccepted valuesDefault
bgbackground colorstringany CSS colortransparent
...native propsHTMLAttributes'id', 'className', ...-

Ref

The ref points at the section element.

Edit this page on GitHub