@maggieserino/card
v1.1.1
Published
## Installation `npm install --save @maggieserino/card` or Clone this repo and import `bundle.css` from the `/dist` directory.
Downloads
4
Readme
Maggie's Card Component
Installation
npm install --save @maggieserino/card
or
Clone this repo and import bundle.css
from the /dist
directory.
Import
The styles can be imported in an existing codebase as standalone or using PostCSS:
PostCSS Imports
@import '@maggieserino/card'
Standalone Imports
<link rel="stylesheet" href="./dist/bundle.css">
Usage
<div class="card">
<!-- Header -->
<div class="card__header">
Header
</div>
<!-- Image -->
<div class="card__image">
<img src="https://placeimg.com/640/480/nature">
</div>
<!-- Body -->
<div class="card__body">
<h2>This is the Card title</h2>
<p>This is the card body</p>
</div>
<!-- Footer -->
<div class="card__footer">
Footer
</div>
</div>