Layout
Structural layout components for application shells.
Basic Structure
Typical layout with Header, Sider, Content and Footer.
Sider
<
<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.
<prism-layout class="demo-layout">
<prism-header>Header</prism-header>
<prism-content>Content</prism-content>
<prism-footer>Footer</prism-footer>
</prism-layout>prism-layout
| Name | Type | Default | Description |
|---|---|---|---|
class | string | - | Additional CSS class for the layout container. |
prism-header
| Name | Type | Default | Description |
|---|---|---|---|
class | string | - | Additional CSS class for the header. |
prism-sider
| Name | Type | Default | Description |
|---|---|---|---|
width | string | number | 200 | Width of the sider. |
collapsedWidth | string | number | 80 | Width of the sider when collapsed. |
collapsible | boolean | false | Whether the sider can be collapsed. |
collapsed | boolean (model) | false | Whether the sider is currently collapsed (supports two-way binding). |
prism-content
| Name | Type | Default | Description |
|---|---|---|---|
class | string | - | Additional CSS class for the content area. |
prism-footer
| Name | Type | Default | Description |
|---|---|---|---|
class | string | - | Additional CSS class for the footer. |