1.0.9 • Published 1 year ago

react-typescript-playing-card v1.0.9

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

react-typescript-playing-card

A modern React TypeScript playing card component.

Installation

npm install react-typescript-playing-card

Usage

TypeScript:

import React from "react";
import { PlayingCard, PlayingCardSuit, PlayingCardNumber } from "react-typescript-playing-card";
import "react-typescript-playing-card/dist/index.css";

const App = () => {
  return (
    <PlayingCard
      suit={PlayingCardSuit.SPADES}
      number={PlayingCardNumber.ACE}
      width={250}
      height={350}
    />
  );
};

JavaScript 🤢 (learn TypeScript!):

import React from "react";
import { PlayingCard } from "react-typescript-playing-card";
import "react-typescript-playing-card/dist/index.css";

const App = () => {
  return (
    <PlayingCard
      suit={"spades"}
      number={'A'}
      width={250}
      height={350}
    />
  );
};
1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago