CardComponent

This component allows you to create a card element.

Example

CardComponent

<card-component
  :is-in-modal="false"
  title="Card title"
  title-class="is-size-5"
  icon="layers"
  class="no-footer px-0"
>
  <p>Card content</p>
</card-component>

Props

NameDescriptionTypeRequiredDefault
titleThe card titleStringfalsenull
subtitleThe card subtitleStringfalsenull
cardStyleThe card styleStringfalse""
titleClassThe extra classes styleStringfalse"is-size-4"
subtitleClassThe extra classes styleStringfalse"is-size-5"
iconThe icon nameStringfalsenull
isInModalIt define if the card is displayed inside a modal or not.Booleanfalsefalse
modalWidthThe modal widthNumberfalse400

Events

Event NameDescriptionParameters
modalClose--

Slots

NameDescriptionDefault Slot Content
header-extra-contentHeader extra content-
defaultDefault-
footerFooter-
header-extra-contentHeader extra content (modal)-
defaultDefault (modal)-
footerFooter (modal)-