Skip to content
🌏 Translated with the assistance of DeepSeek and ChatGPT

Layout Container ​

You can use it to build the basic structure of a page—amazing, almost like magic! It includes the following parts:

  • Container: The outer container;
  • Header: The header area;
  • Footer: The footer area;
  • Main: The main content area;
  • Aside: The sidebar area.

Common Page Layouts ​

Header
Main
Footer
Hide source code
Header
Main
Footer
Hide source code
Header
Main
Footer
Hide source code
Header
Main
Footer
Hide source code

Layout Borders ​

Header, Footer, and Aside can display borders using the bordered property. The Aside component's side property is used to indicate the sidebar position, which changes where the border appears.

Header
Main
Footer
Hide source code

Emphasized Layout ​

Header, Footer, and Aside can enable dark mode using the dark property.

Header
Main
Footer
Hide source code

Soft Background ​

The soft property can be used on Main to display a soft light gray background.

Header
Main
Footer
Hide source code

API ​

ContainerProps ​

AttributeTypeOptionalDefaultDescriptionVersion
direction'horizontal' | 'vertical'TrueThe direction in which child elements are arranged. If there is an Aside child component, the default is 'vertical', otherwise 'horizontal'.0.0.0-beta

ContainerSlots ​

SlotParameterDescriptionVersion
defaultUsed to pass in child layout container components.0.0.0-beta

MainProps ​

AttributeTypeOptionalDefaultDescriptionVersion
softbooleanTruefalseSoft light gray background.0.0.3

MainSlots ​

SlotParameterDescriptionVersion
defaultContent of the main area.0.0.0-beta

HeaderProps ​

AttributeTypeOptionalDefaultDescriptionVersion
minHeightstring | numberTrue64Minimum height of the Header component.0.0.0-beta
borderedbooleanTruefalseWhether the Header component displays a border.0.0.0-beta
darkbooleanTruefalseWhether the Header component uses dark mode.0.0.0-beta

HeaderSlots ​

SlotParameterDescriptionVersion
defaultContent of the header area.0.0.0-beta

FooterProps ​

AttributeTypeOptionalDefaultDescriptionVersion
minHeightstring | numberTrue64Minimum height of the Footer component.0.0.0-beta
borderedbooleanTruefalseWhether the Footer component displays a border.0.0.0-beta
darkbooleanTruefalseWhether the Footer component uses dark mode.0.0.0-beta

FooterSlots ​

SlotParameterDescriptionVersion
defaultContent of the footer area.0.0.0-beta

AsideProps ​

AttributeTypeOptionalDefaultDescriptionVersion
widthstring | numberTrue300Width of the Aside component.0.0.0-beta
borderedbooleanTruefalseWhether the Aside component displays a border.0.0.0-beta
side'left' | 'right'True'left'Property used to indicate the sidebar position, which changes where the border appears. If set to 'left', the border appears on the right; if set to 'right', the border appears on the left.0.0.0-beta
darkbooleanTruefalseWhether the Aside component uses dark mode.0.0.0-beta

AsideSlots ​

SlotParameterDescriptionVersion
defaultContent of the sidebar area.0.0.0-beta