Page
Use s-page
as the main container for placing content in your app. Page comes with preset layouts and automatically adds spacing between elements.
Anchor to propertiesProperties
Use as the outer wrapper of a page
- Anchor to connectedCallbackconnectedCallback() => void
- Anchor to disconnectedCallbackdisconnectedCallback() => void
- Anchor to headingheadingstring
The main page heading
- Anchor to inlineSizeinlineSize"small" | "base" | "large"
The inline size of the page
base
corresponds to a set default inline sizelarge
full width with whitespace
Was this section helpful?
Anchor to slotsSlots
- Anchor to asideasideHTMLElement
The content to display in the aside section of the page.
This slot is only rendered when
is "base".
- HTMLElement
Navigations back actions for the page.
Only accepts
Link
components.- Anchor to primary-actionprimary-actionHTMLElement
The primary action for the page.
Only accepts a single
Button
component with avariant
ofprimary
.- Anchor to secondary-actionssecondary-actionsHTMLElement
Secondary actions for the page.
Only accepts
and
Button
components with avariant
ofsecondary
orauto
.
Was this section helpful?
<s-page heading="Products">
<s-section>
<s-text>Hello World</s-text>
</s-section>
</s-page>
Examples
Default
<s-page heading="Products"> <s-section> <s-text>Hello World</s-text> </s-section> </s-page>