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
| Attribute | Description | Type | Accepted values | Default |
|---|---|---|---|---|
| bg | background color | string | any CSS color | transparent |
| ... | native props | HTMLAttributes | 'id', 'className', ... | - |
Ref
The ref points at the section element.