# @alehuo/react-playing-cards

> React card components for various usages

Latest version **1.0.1** (published 2022-07-06) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @alehuo/react-playing-cards
pnpm add @alehuo/react-playing-cards
yarn add @alehuo/react-playing-cards
bun add @alehuo/react-playing-cards
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-07-06 |
| First published | 2022-07-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 84.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | alehuo |
| Maintainers | alehuo |
| Keywords | react, card games, playing cards, magic cards |

## Links

- npm: https://www.npmjs.com/package/@alehuo/react-playing-cards
- Repository: https://github.com/alehuo/react-card-components
- Homepage: https://github.com/alehuo/react-card-components#readme
- Issues: https://github.com/alehuo/react-card-components/issues
- npm.io page: https://npm.io/package/@alehuo/react-playing-cards

## Dependencies (3)

- [react](https://npm.io/package/react.md) ^17.0.2
- [react-dom](https://npm.io/package/react-dom.md) ^17.0.2
- [classnames](https://npm.io/package/classnames.md) ^2.3.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2022-07-06
- 1.0.0 — 2022-07-06

## README

# react-playing-cards

Various card components for React.

## Currently implemented components

- Playing cards

## Usage

1. Install the `Sigmar One` -font from Google Fonts and include it in your `</head>`-tag.
2. Run `npm i @alehuo/react-playing-cards`
3. Check one of the examples below

### Playing cards

```typescript
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>
);
```

<img src="./resources/example-card.png" width="200" />

## Installation

Run `npm install`.

## Building

Run `npm run build`

## Development

Run `npm watch` to preview the components.

### Requirements for development

- Node.js v16 (`.nvmrc` file is provided)

## License

MIT license.

---
_Source: https://npm.io/package/@alehuo/react-playing-cards · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
