Cards

You can add the component on any page in the template. You need to follow the steps given below:

Step 1: Please add the code given below in the page where you want to add the component.

<Card>
  <CardImg top width="100%" className="img-fluid ripple-effect" src={require('Assets/img/gallery-1.jpg')} alt="Card image cap" />
  <CardBody>
       <CardTitle>Card Title</CardTitle>
       <CardSubtitle>Card Subtitle</CardSubtitle>
       <CardText>Some quick example text to build on the card title and make up the bulk of the cards content.</CardText>
       <Button size="small" color="primary">Read More</Button>
  </CardBody>
</Card>

Step 2: Now Import the component from its parent library.

import {
   Card,
   CardImg,
   CardText,
   CardBody,
   CardTitle,
   CardSubtitle,
   Button
} from 'reactstrap';

We have given you an example of adding a simple card on the Ecommerce Dashboard.

You can check some other layouts of cards below. For adding any of the below layout in the template, please check their relative code in the src->routes->components->cards->index.js file.

Last updated