Components
A page-level section component designed to organize and group content into sections within a page.
Usage
The Page Section component can be used in various scenarios to improve the layout, user experience and content hierarchy. For example, each Page Section on the page can be customized with different background colors, padding and margins to create visually appealing groupings of content.
Learn, code, and build with our developer community
Collaborate. Innovate. Build better solutions together.::page-section
---
tag: "section"
full-width: true
margin: "0px"
padding: "100px 20px"
vertical-align: "top"
horizontal-align: "left"
text-align: "left"
color: "white"
background-color: "lightgray"
background-image:
url: "https://i.imgur.com/rU6cP5h.jpeg"
background-size: "cover"
background-position: "center"
background-origin: "border-box"
background-repeat: "no-repeat"
background-overlay: "rgba(0,0,0, 0.1)"
---
Collaborate. Innovate. Build better solutions together.
#title
Learn, code, and build with our developer community
::
PageSection Component Props
Props
title
Customization options for the title of the Page Section, allow you to modify the title tag and styles of the rendered elements.
- Type:
Object
- Default:
undefined
interface PageSectionTitle {
/** Title font size. */
fontSize?: string
/** Title font weight. */
fontWeight?: string
/** Title line height. */
lineHeight?: string
/** Title paddings. */
padding?: string
/** Title margin. */
margin?: string
/** Title text color. */
color?: string
/** Title text align. Accepts values for text-align css property. */
textAlign?: 'left' | 'right' | 'center' | 'justify' | 'initial' | 'inherit'
/** HTML tag to use for the title. */
tag?: string
}
Learn, code, and build with our developer community
Collaborate. Innovate. Build better solutions together.::page-section
---
tag: "section"
full-width: true
margin: "0px"
padding: "100px 20px"
vertical-align: "top"
horizontal-align: "center"
text-align: "left"
color: "white"
background-color: "lightgray"
background-image:
url: "https://i.imgur.com/rU6cP5h.jpeg"
background-size: "cover"
background-position: "center"
background-origin: "border-box"
background-repeat: "no-repeat"
background-overlay: "rgba(0,0,0, 0.1)"
title:
tag: "h2"
font-size: "20px"
font-weight: 700
line-height: "20px"
padding: "4px 0"
margin: "0 0 8px"
color: "white"
text-align: "center"
---
Collaborate. Innovate. Build better solutions together.
#title
Learn, code, and build with our developer community
::
PageSection Component Props
Shared Props
This component also includes the shared props listed below:
tag
- default issection
.textAlign
- default isleft
.verticalAlign
- default istop
.horizontalAlign
- default is''
.border
- default isnull
.borderRadius
- default isnull
.backgroundColor
- default is''
.color
- default isnull
.fullWidth
- default isfalse
.maxWidth
- default is1280px
.padding
- default is20px
.margin
- default is0
.backgroundImage
- default isundefined
.styles
- default is''
.
See here for more information on shared props.
Slots
default
Use the #default
slot to add content to the Page Section component.
Learn, code, and build with our developer community
Collaborate. Innovate. Build better solutions together.::page-section
---
full-width: true
padding: "100px 20px"
color: "white"
background-image:
url: "https://i.imgur.com/rU6cP5h.jpeg"
background-size: "cover"
background-position: "center"
background-origin: "border-box"
background-repeat: "no-repeat"
background-overlay: "rgba(0,0,0, 0.1)"
---
Collaborate. Innovate. Build better solutions together.
#title
Learn, code, and build with our developer community
::
title
Use the #title
slot to customize and add a title to the Page Section component.
Learn, code, and build with our developer community
Collaborate. Innovate. Build better solutions together.::page-section
---
full-width: true
padding: "100px 20px"
color: "white"
background-image:
url: "https://i.imgur.com/rU6cP5h.jpeg"
background-size: "cover"
background-position: "center"
background-origin: "border-box"
background-repeat: "no-repeat"
background-overlay: "rgba(0,0,0, 0.1)"
---
Collaborate. Innovate. Build better solutions together.
#title
Learn, code, and build with our developer community
::