Skip to main content

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.

Use as the outer wrapper of a page

() => void
Anchor to disconnectedCallback
disconnectedCallback
() => void
string

The main page heading

"small" | "base" | "large"

The inline size of the page

  • base corresponds to a set default inline size
  • large full width with whitespace
Was this section helpful?

HTMLElement

The content to display in the aside section of the page.

This slot is only rendered when inlineSize is "base".

HTMLElement

The primary action to perform on the page. Accepts a single Button with a variant of primary.

HTMLElement

Secondary actions on the page. Accepts ButtonGroup with nested Buttons or a single Button. Buttons must have a variant of secondary or auto.

Was this section helpful?
<s-page>
<s-section>
<s-text>Hello World</s-text>
</s-section>
</s-page>

Preview