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

Anchor to heading
heading
string

The main page heading

Anchor to inlineSize
inlineSize
"small" | "base" | "large"
Default: 'base'

The inline size of the page

  • base corresponds to a set default inline size
  • large full width with whitespace

Anchor to aside
aside
HTMLElement

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

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

Anchor to breadcrumb-actions
breadcrumb-actions
HTMLElement

Navigations back actions for the page.

Only accepts Link components.

Anchor to children
children
HTMLElement

The content of the Page.

Anchor to primary-action
primary-action
HTMLElement

The primary action for the page.

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

Anchor to secondary-actions
secondary-actions
HTMLElement

Secondary actions for the page.

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

Examples
<s-page heading="Products">
<s-section>
<s-text>Hello World</s-text>
</s-section>
</s-page>

Preview

  • Always provide a title that describes the current page
  • Include breadcrumbs when the page is part of a flow
  • Include page actions in the header only if they are relevant to the entire page
  • Include no more than one primary action and 3 secondary actions per page
  • Don't include any actions at the bottom of the page

  • Use sentence case and avoid unnecessary words
  • Don't include punctuation like periods or exclamation marks
  • Page titles should clearly communicate the page purpose
  • Page actions should use a verb or verb + noun phrase (e.g., "Create store", "Edit product")
Was this page helpful?