Skip to content

A simple component to render cards from the Thoughtbot Refills library

Notifications You must be signed in to change notification settings

Legitcode/cards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Legit-Cards

A simple React component for easily creating the Card component from Thoughbot's Refills.

##Usage

import React from 'react';
import { Card, Header, Image, Copy } from 'legit-cards';

require('legit-cards/lib/css/default');

export default class MyComponent extends React.Component {
  render() {
    return (
      <Card className='my-card'>
        <Header className='my-custom-header-class'>
          <h2>This is a great card</h2>
        </Header>

        <Image className='my-custom-image-class'>
          <img src='https://foo.bar.com/amazing-image.png' />
        </Image>

        <Copy className='my-custom-copy-class'>
          <p>Lorem ipsum bacon</p>
        </Copy>
      </Card>
    );
  }
}

About

A simple component to render cards from the Thoughtbot Refills library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published