react-deck-o-cards

1.1.0 • Public • Published

it's a deck of cards. nothing fancy

install

yarn add react-deck-o-cards

use

import { Hand, Card, CardBack } from 'react-deck-o-cards';
 
//...
 
const defHandStyle = {
  maxHeight:'34vh',
  minHeight:'34vh',
  
  maxWidth:'100vw',
  padding: 0,
};
 
// ...
 
render(){
  return (
    <Hand cards={[
      { rank: 1, suit: 0 },
    ]} hidden={false} style={defHandStyle} />
  );
}

notices / thanks

card svg suits from

https://github.com/htdebeer/SVG-cards

thanks eh!

(if this notice doesn't fulfill the LGPL, please notify me!)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    1
    • latest

Version History

Package Sidebar

Install

npm i react-deck-o-cards

Weekly Downloads

1

Version

1.1.0

License

ISC

Unpacked Size

134 kB

Total Files

8

Last publish

Collaborators

  • nikfrank