1.0.1 • Published 4 years ago
@alehuo/react-playing-cards v1.0.1
react-playing-cards
Various card components for React.
Currently implemented components
- Playing cards
Usage
- Install the
Sigmar One-font from Google Fonts and include it in your</head>-tag. - Run
npm i @alehuo/react-playing-cards - Check one of the examples below
Playing cards
import { PlayingCard } from "@alehuo/react-playing-cards";
import React from "react";
import ReactDOM from "react-dom";
ReactDOM.render(
document.getElementById("app"),
<div>
<PlayingCard value={12} suit="spades" />
</div>
);Installation
Run npm install.
Building
Run npm run build
Development
Run npm watch to preview the components.
Requirements for development
- Node.js v16 (
.nvmrcfile is provided)
License
MIT license.