igakim/mcs-ui

View on GitHub
src/components/card/Card.md

Summary

Maintainability
Test Coverage
Card example:

```jsx
const { CardImage, CardTitle } = Card;

<Card className="width-25 border">
  <CardImage src="https://cdn-images-1.medium.com/max/2400/1*mOfFxGkE0FP-eQ30xoYxlQ.jpeg" />
  <CardTitle>Card Title</CardTitle>
</Card>
```

### Card.CardImage
*CardImage component should be used inside Card component only*

#### Props:

| Prop name       | Type           | Default       | Description                                       |
| :------------- | :------------- | :------------ | :------------------------------------------------- |
| <span class="rsg--name-37">`src`</span> | <span class="rsg--type-39">`union`</span> | none | <div class="rsg--para-40">Path to image or image source</div> |

### Card.CardTitle
*CardTitle component should be used inside Card component only*

#### Props:

| Prop name       | Type           | Default       | Description                                       |
| :------------- | :------------- | :------------ | :------------------------------------------------- |
| <span class="rsg--name-37">``</span> | <span class="rsg--type-39">``</span> | none | <div class="rsg--para-40"></div> |

---