Skip to main content

CaContentPanel

A content panel to display content off canvas, for example the cart, the mobile navigation or a country picker Triggered like so: $store.commit('contentpanel/open', {name: String, frame: String (optional)});

SASS-path: ./styles/components/molecules/ca-content-panel.scss

Props

NameDescriptionTypeRequiredDefault
nameThe name id of the content panel. Used in trigger call to open panelStringtrue-
titleTitle to be displayed in the header of the content panel''false-
enterFromDirection from which to enter from on smaller screens (< 768)'bottom', 'left', 'right'falseright
enterFromTabletUpDirection from which to enter from on larger screens (>= 768). Defaults to enterFrom if not set'right', 'left'false-

Slots

NameDescriptionDefault Slot Content
headerThe content panel header<h1 class="ca-content-panel__title">{{ title }}</h1>
defaultThe main content of the content panel. This content will be scrollable when overflowing-
footerThe content panel footer<button type="button" class="ca-content-panel__close-button" @click="close"><CaIconAndText icon-name="x">{{ $t('CLOSE') }}</CaIconAndText></button>