OctantisWeb.Components.PolarisWC.SPage (octantis v0.2.0)
View SourceUse s-page as the main container for placing content in your app. Page comes with preset layouts and automatically adds spacing between elements.
Requirements
Requires OctantisEventProxy hook. See Install Hooks README.
Example
<.s_page heading="Products">
<.s_section>
<.s_text>Hello World</.s_text>
</.s_section>
</.s_page>
## See
- https://shopify.dev/docs/api/app-home/polaris-web-components/structure/page
Summary
Functions
As A helper for setting the underlaying element of a component
Use s-page as the main container for placing content in your app. Page comes with preset layouts and automatically adds spacing between elements.
Functions
As A helper for setting the underlaying element of a component
Attributes
as(:atom) - Defaults to:section.- Global attributes are accepted.
Slots
inner_block(required)
Use s-page as the main container for placing content in your app. Page comes with preset layouts and automatically adds spacing between elements.
Requirements
Requires OctantisEventProxy hook. See Install Hooks README.
Example
<.s_page heading="Products">
<.s_section>
<.s_text>Hello World</.s_text>
</.s_section>
</.s_page>
## See
- https://shopify.dev/docs/api/app-home/polaris-web-components/structure/pageAttributes
id(:string) (required) - A unique identifier for the element.heading(:string) - The main page heading.inline_size(:string) - "small" | "base" | "large"The inline size of the page
basecorresponds to a set default inline sizelargefull width with whitespace
connected_callback(:string)disconnected_callback(:string)Global attributes are accepted.
Slots
aside- HTMLElementThe content to display in the aside section of the page.
This slot is only rendered when
inlineSizeis "base".Accepts attributes:
as(:atom) - Must be one of:section.
breadcrumb_action- Navigations back actions for the page.Only accepts
Linkcomponents.primary_action- The primary action for the page.Only accepts a single
Buttoncomponent with avariantofprimary.secondary_action- Secondary actions for the page.Only accepts
ButtonGroupandButtoncomponents with avariantofsecondaryorauto.inner_block