Skip to content

Container ​

Container components for scaffolding basic structure of the page:

<zane-container>: wrapper container. When nested with a <zane-header> or <zane-footer>, all its child elements will be vertically arranged. Otherwise horizontally.

<zane-header>: container for headers.

<zane-aside>: container for side sections (usually a side nav).

<zane-main>: container for main sections.

<zane-footer>: container for footers.

TIP

These components use flex for layout, so please make sure your browser supports it. Besides, <zane-container>'s direct child elements have to be one or more of the latter four components. And father element of the latter four components must be a <zane-container>.

Common layouts ​

​

​

​

​

​

​

​

Example ​

Container API ​

Container Attributes ​

NameDescriptionTypeDefault
directionlayout direction for child elements'horizontal' | 'vertical''vertical' when nested with zane-header or zane-footer; 'horizontal' otherwise

Container Slots ​

NameDescriptionSubtags
defaultcustomize default contentContainer / Header / Aside / Main / Footer

Header API ​

Header Attributes ​

NameDescriptionTypeDefault
heightheight of the headerstring60px

Header Slots ​

NameDescription
defaultcustomize default content

Aside API ​

Aside Attributes ​

NameDescriptionTypeDefault
widthwidth of the side sectionstring300px

Aside Slots ​

NameDescription
defaultcustomize default content

Main API ​

Main Slots ​

NameDescription
defaultcustomize default content
NameDescriptionTypeDefault
heightheight of the footer'string'60px
NameDescription
defaultcustomize default content

Released under the MIT License.