Vue Card Component API

Card API

Explore the API reference for the Vue Card component and discover how to effectively utilize its props for customization.

CCard

jsx
import { CCard } from '@coreui/vue-pro'
PropertyDefaultType
color-Color

Sets the color context of the component to one of CoreUI’s themed colors.

textBgColor5.0.0+-Color

Sets the component's color scheme to one of CoreUI's themed colors, ensuring the text color contrast adheres to the WCAG 4.5:1 contrast ratio standard for accessibility.

textColor-TextColor

Sets the text color context of the component to one of CoreUI’s themed colors.

CCardHeader

jsx
import { CCardHeader } from '@coreui/vue-pro'
PropertyDefaultType
as'div'string

Component used for the root node. Either a string to use a HTML element or a component.

CCardImage

jsx
import { CCardImage } from '@coreui/vue-pro'
PropertyDefaultType
as'img'string

Component used for the root node. Either a string to use a HTML element or a component.

orientation-string

Optionally orientate the image to the top, bottom.

CCardSubtitle

jsx
import { CCardSubtitle } from '@coreui/vue-pro'
PropertyDefaultType
as'h6'string

Component used for the root node. Either a string to use a HTML element or a component.

CCardText

jsx
import { CCardText } from '@coreui/vue-pro'
PropertyDefaultType
as'p'string

Component used for the root node. Either a string to use a HTML element or a component.

CCardTitle

jsx
import { CCardTitle } from '@coreui/vue-pro'
PropertyDefaultType
as'h5'string

Component used for the root node. Either a string to use a HTML element or a component.