Skip to content

CMain

CMain is the main content area of the application. It stretches to fill all available space inside CApp and serves as the semantic container for page content.

Basic usage

vue
<CApp>
  <CMain>
    <!-- page content -->
  </CMain>
</CApp>

Props

PropTypeDefaultDescription
tagstring'div'HTML tag of the root element

Slots

SlotDescription
defaultPage content

CSS variables

CMain does not define its own CSS variables. Style it with utility classes or directly via the .c-main selector.

scss
.c-main {
  flex: 1 0 auto;
  max-width: 100%;
}