Prism Docs

Layout

Structural layout components for application shells.

Basic Structure

Typical layout with Header, Sider, Content and Footer.

Header
Sider
<
Content
Footer ©2024 Prism Design

<prism-layout class="demo-layout">
  <prism-header>Header</prism-header>
  <prism-layout>
    <prism-sider collapsible>Sider</prism-sider>
    <prism-content>Content</prism-content>
  </prism-layout>
  <prism-footer>Footer</prism-footer>
</prism-layout>

Header-Content-Footer

Typical layout with Header, Content and Footer.

HeaderContentFooter

<prism-layout class="demo-layout">
  <prism-header>Header</prism-header>
  <prism-content>Content</prism-content>
  <prism-footer>Footer</prism-footer>
</prism-layout>

prism-layout

NameTypeDefaultDescription
classstring-Additional CSS class for the layout container.

prism-header

NameTypeDefaultDescription
classstring-Additional CSS class for the header.

prism-sider

NameTypeDefaultDescription
widthstring | number200Width of the sider.
collapsedWidthstring | number80Width of the sider when collapsed.
collapsiblebooleanfalseWhether the sider can be collapsed.
collapsedboolean (model)falseWhether the sider is currently collapsed (supports two-way binding).

prism-content

NameTypeDefaultDescription
classstring-Additional CSS class for the content area.

prism-footer

NameTypeDefaultDescription
classstring-Additional CSS class for the footer.