1.1.0 • Published 5 years ago

react-deck-o-cards v1.1.0

Weekly downloads
13
License
ISC
Repository
github
Last release
5 years ago

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!)

1.1.0

5 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago