Skip to main content
Yoummday Light Light Dark System

Page Aside

<sl-page-aside> | SlPageAside
Since 2.34.0 stable

Use this to frame your app on the left

My Card Content

Apple Banana Orange Broccoli Carrot Zucchini
+1 (234) 456–7890
<sl-page-aside>
  <sl-card
      slot="top"
      headline="Card Headline"
    >
    <p>My Card Content</p>
  </sl-card>

  <div slot="center">
    <sl-menu-item value="apple">Apple</sl-menu-item>
    <sl-menu-item value="banana">Banana</sl-menu-item>
    <sl-menu-item value="orange">Orange</sl-menu-item>
    <sl-menu-item value="broccoli">Broccoli</sl-menu-item>
    <sl-menu-item value="carrot">Carrot</sl-menu-item>
    <sl-menu-item value="zucchini">Zucchini</sl-menu-item>
  </div>

  <div slot="bottom">
    <span id="my-phone">+1 (234) 456-7890</span>
    <sl-copy-button from="my-phone"></sl-copy-button>
  </div>
</sl-page-aside>

Importing

If you’re using the autoloader or the traditional loader, you can ignore this section. Otherwise, feel free to use any of the following snippets to cherry pick this component.

Script Import Bundler React

To import this component from the CDN using a script tag:

<script type="module" src="https://v2-48-10.yoummday-theme.pages.dev/components/page-aside/page-aside.js"></script>

To import this component from the CDN using a JavaScript import:

import 'https://v2-48-10.yoummday-theme.pages.dev/components/page-aside/page-aside.js';

To import this component using a bundler:

import '@yoummday/ymmd-shoelace/dist/components/page-aside/page-aside.js';

To import this component as a React component:

import SlPageAside from '@yoummday/ymmd-shoelace/dist/react/page-aside';

Slots

Name Description
top top of the aside.
center center of the aside.
bottom bottom of the aside.

Learn more about using slots.

Parts

Name Description
base The component’s base wrapper.

Learn more about customizing CSS parts.