Skip to content

layoutcomponent Layout

Basic Usage

Currently a simple left-right layout, with extensions planned.

Sidebar
Right Container
<template>
  <b-layout has-sider>
    <template #sider>
      <div style="height: 300px">Sidebar</div>
    </template>
    <div>Right Container</div>
  </b-layout>
</template>

Props

ParameterDescriptionTypeOptionsDefault
hasSiderWhether to have a sidebar (currently left side)Boolean
siderWidthSidebar widthNumber240
collapsedWidthSidebar collapsed widthNumber40
showToggleWhether to show collapse buttonBooleantrue
showCollapsedContentWhether to show inner content after collapsingBooleanfalse
contentStyleRight container styleObject{}