ImageCard
The
<ImageCard>
<Row className="image-card-group">
<Column>
<Column>
Example
Code
<Row className="image-card-group"><Column colMd={4} colLg={4} noGutterSm><ImageCard title="Title" subTitle="Subtitle" href="/">![Square](/images/square.jpg)</ImageCard><ImageCardtitle="Dark title"titleColor="dark"aspectRatio="1:1"href="/"actionIcon="arrowRight"subTitleColor="dark"subTitle="Dark subtitle">![Light dark](./images/light-dark.jpg)</ImageCard></Column><Column colMd={4} colLg={4} noGutterSm><ImageCardtitle="Title"subTitle="Subtitle"aspectRatio="1:2"href="/"actionIcon="download"titleColor="light"subTitleColor="light">![Plane image](./images/plane.jpg)</ImageCard></Column><Column colMd={4} colLg={4} noGutterSm><ImageCard aspectRatio="1:1" href="/" hoverColor="dark">![color pallete array](/images/color-grid.svg)</ImageCard><ImageCard disabled aspectRatio="1:1" href="/">![Square](/images/square.jpg)</ImageCard></Column></Row>
Props
property | propType | required | default | description |
---|---|---|---|---|
children | node | Background image for the card, make sure it is saved out at the correct aspect ratio or it will appear distorted | ||
href | string | Set url for card | ||
aspectRatio | string |
| Set card aspect ratio, default is
| |
subTitle | string | Smaller title on top left of card | ||
title | string | Large title | ||
actionIcon | string | Action icon, default is no icon, options are
| ||
titleColor | string |
| Set title text color, default is
| |
subTitleColor | string |
| Set sub title text color, default is
| |
iconColor | string |
| Set icon color, default is
| |
hoverColor | string |
| Set hover to lighten or darken the image, default is
| |
disabled | bool |
| Set for disabled card | |
className | string | Add custom class name |