Skip to content

nikfrank/react-deck-o-cards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors