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

string

The main page heading

"small" | "base" | "large"
Default: 'base'

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

Navigations back actions for the page.

Only accepts Link components.

HTMLElement

The content of the Page.

HTMLElement

The primary action for the page.

Only accepts a single Button component with a variant of primary.

HTMLElement

Secondary actions for the page.

Only accepts ButtonGroup and Button components with a variant of secondary or auto.

Was this section helpful?
<s-page heading="Products">
<s-section>
<s-text>Hello World</s-text>
</s-section>
</s-page>

Component examples

Shows a page with a clear heading and descriptive text, illustrating how to use the page component with a title.

Anchor to example-small-inline-size-for-focused-contentSmall inline size for focused content

Illustrates a page with a small inline size, ideal for focused, compact content like settings or forms with minimal information.

Demonstrates a page with a large inline size, perfect for displaying broader content like analytics or dashboards with multiple information sections.

Was this section helpful?

Page with heading

<s-page heading="Product catalog" inline-size="base">
<s-section>
<s-text>Manage your product catalog and inventory.</s-text>
</s-section>
</s-page>