• Getting Started
  • Components
  • Github
  • Go pro
energyGetting started
  • Introduction
dComponents
  • Button Components
  • Grid Components
  • Input Components
  • Layout Components
  • Toast Components
  • Widget Components
  • Alert
  • Badge
  • Breadcrumb
  • Callout
  • Card
  • Carousel
  • Charts
  • Collapse
  • CreateElement
  • DataTable
  • Dropdown
  • ElementCover
  • Embed
  • Fade
  • Form
  • Icon
  • Img
  • Jumbotron
  • Link
  • ListGroup
  • Media
  • Modal
  • Nav
  • Navbar
  • Pagination
  • Popover
  • Progress
  • Spinner
  • Switch
  • Tabs
  • Toggler
  • Tooltip

Card

React cards component provide a flexible and extensible container for displaying content. React cards are delivered with a bunch of variants and options.


Usage

Example

Header
Body.
Footer.
Header

Title.

Subtitle.

Text text text text text text text text.

Footer.

Script


  return (
    <CContainer fluid>
    <CRow>
      <CCol sm="6">
        <CCard>
          <CCardHeader>
            Header
          </CCardHeader>
          <CCardBody>
            Body.
          </CCardBody>
          <CCardFooter>
            Footer.
          </CCardFooter>
        </CCard>
      </CCol>
      <CCol sm="6">
        <CCard>
          <CCardHeader>
            Header
          </CCardHeader>
          <CCardBody>
            <CCardTitle>
              Title.
            </CCardTitle>
            <CCardSubtitle>
              Subtitle.
            </CCardSubtitle>
            <CCardText>
              Text text text text text text text text.
            </CCardText>
          </CCardBody>
          <CCardFooter>
            Footer.
          </CCardFooter>
        </CCard>
      </CCol>
    </CRow>
    </CContainer>
  )
  


# Features

  • Wrapper components covering bootstrap card components
  • Style components easily by props
  • Custom card-accents styling

# Card API

NameRequiredTypeDefault Value
taganydiv
main HTML tag name
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag
accentColorstring
adds card accent, which is coloured top border



CardBody


# CardBody API

NameRequiredTypeDefault Value
taganydiv
main HTML tag name
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag



CardFooter


# CardFooter API

NameRequiredTypeDefault Value
taganyfooter
main HTML tag name
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag



CardGroup


Component for card grouping.

# CardGroup API

NameRequiredTypeDefault Value
taganydiv
main HTML tag name
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag
deckboolean
deck type of the group
columnsboolean
columns type of the group



CardHeader


# CardHeader API

NameRequiredTypeDefault Value
taganyheader
main HTML tag name
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag



CardImg


Component for placing image in card. Component inherits functionality from the CImg component.

# CardImg API

NameRequiredTypeDefault Value
variant(top | bottom | full)full
variant of the image card



CardImgOverlay


Wrapper component with 'card-img-overlay' class.

# CardImgOverlay API

NameRequiredTypeDefault Value
taganydiv
main HTML tag name
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag



CardLink


CCardLink is CLink component with additional 'card-link' class.



CardTitle


Wrapper component with 'card-title' class.

# CardTitle API

NameRequiredTypeDefault Value
taganyh4
main HTML tag name
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag



CardSubtitle


Wrapper component with 'card-subtitle' class.

# CardSubtitle API

NameRequiredTypeDefault Value
taganyh6
main HTML tag name
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag



CardText


Wrapper component with 'card-text' class.

# CardText API

NameRequiredTypeDefault Value
taganyp
main HTML tag name
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag

  • Components
    • Usage
      • Features
      • API
    • Related
      • CCard
      • CCardBody
      • CCardFooter
      • CCardGroup
      • CCardHeader
      • CCardImg
      • CCardImgOverlay
      • CCardLink
      • CCardTitle
      • CCardSubtitle
      • CCardText
CoreUI © 2020 creativeLabs.core-logo