react-deck
v2.0.2
Published
Render a deck of cards with react
Downloads
18
Readme
react-deck
Render a stack of cards with React. See also: react-card
Usage
import React from 'react';
import ReactDOM from 'react-dom';
import {Deck} from 'react-deck'
import {Card} from 'react-card'
ReactDOM.render(
<Deck>
<Card>
<Card.Front>1: front</Card.Front>
<Card.Back>1: back</Card.Back>
</Card>
<Card>
<Card.Front>2: front</Card.Front>
<Card.Back>2: back</Card.Back>
</Card>
<Card>
<Card.Front>3: front</Card.Front>
<Card.Back>3: back</Card.Back>
</Card>
</Deck>,
document.body
);
Styling
See the demo.css file for sample CSS code you can use to style the component.
License
MIT