Layout
Build a page structure from a header, sidebar, body, and footer.
Usage guide
#Build the app's header, sidebar, body, and footer structure. Place each region directly inside Layout.
- Header / Footer
sizespecifies height. Usesmall,medium,large, or a CSS size.- Sider
sizespecifies width. Place it after Content to position it on the right.- Content
- Fill the remaining content area. Each direct child region is assigned to its slot automatically.
Examples
#Feature examples
#Choose a feature from 4 topics. Explore property settings, method calls, event results, and slot layouts through live examples and code.
No matching features.
API reference
#Hover over a name or focus it with the keyboard to see the code. On touch screens, tap the name.
<sy-layout>
Slots
| Slot | Description |
|---|---|
| Content displayed in the header area. | |
| Content displayed in the sider-start area. | |
| Content displayed in the content area. | |
| Content displayed in the sider-end area. | |
| Content displayed in the footer area. | |
| Component body or child items. |
<sy-layout-header>
Properties
| Attribute / Property | Type | Default | Description |
|---|---|---|---|
LayoutSize | 'medium' | Header height: small, medium, large, or a CSS length. |
Slots
| Slot | Description |
|---|---|
| Component body or child items. |
<sy-layout-sider>
Properties
| Attribute / Property | Type | Default | Description |
|---|---|---|---|
LayoutSize | 'medium' | Sidebar width: small, medium, large, or a CSS length. |
Slots
| Slot | Description |
|---|---|
| Component body or child items. |
<sy-layout-content>
Slots
| Slot | Description |
|---|---|
| Component body or child items. |
<sy-layout-footer>
Properties
| Attribute / Property | Type | Default | Description |
|---|---|---|---|
LayoutSize | 'medium' | Footer height: small, medium, large, or a CSS length. |
Slots
| Slot | Description |
|---|---|
| Component body or child items. |