Various card components for React.
- Playing cards
- 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
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>
);
Run npm install
.
Run npm run build
Run npm watch
to preview the components.
- Node.js v16 (
.nvmrc
file is provided)
MIT license.