import React from 'react'; import { Card } from '../UI'; import { storiesOf } from '@kadira/storybook'; const styles = { footer: { color: '#aaa', backgroundColor: '#555', textAlign: 'center', marginTop: 5, padding: 10 } }; storiesOf('Card', module) .add('Default View', () => (

A Card

Subtitle

Margins are applied to all elements inside a card.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. lobortis vel. Nulla porttitor enim at tellus eget malesuada eleifend. Nunc tellus turpis, tincidunt sed felis facilisis, lacinia condimentum quam. Cras quis tortor fermentum, aliquam tortor eu, consequat ligula. Nulla eget nulla act odio varius ullamcorper turpis. In consequat egestas nulla condimentum faucibus. Donec scelerisque convallis est nec fringila. Suspendisse non lorem non erat congue consequat.

)).add('Full width content', () => (

Card & cat

Media Elements such as video, img (and iFrame for embeds) don't have margin

)).add('Footer', () => (

Now with footer.

header and footer elements are also not subject to margin

))