@rfrenchy/csgo-matchboard-component
TypeScript icon, indicating that this package has built-in type declarations

0.7.0 • Public • Published

csgo-matchboard-component

license npm latest package npm downloads

A React component displaying CSGO Match information

3 Map Component

Install

// with npm
npm install @rfrenchy/csgo-matchboard-component

// with yarn
yarn add @rfrenchy/csgo-matchboard-component

Demo

View on Storybook

Usage

// Matchboard
import React from "react";
import MatchBoard from "@rfrenchy/csgo-matchboard-component/lib/Matchboard";

const match = {
  teamOne: { imageSrc: "./team_one.svg" },
  teamTwo: { imageSrc: "./team_two.svg" },
  maps: [
    {
      name: "Mirage",
      mapImage: "./mirage.png",
      teamOneScore: 12,
      teamTwoScore: 5,
      mapPick: 1,
    },
  ],
};

class App extends React.Component {
  render() {
    return <MatchBoard match={match} />;
  }
}

License

MIT Licensed.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.7.0
    2
    • latest

Version History

Package Sidebar

Install

npm i @rfrenchy/csgo-matchboard-component

Weekly Downloads

6

Version

0.7.0

License

MIT

Unpacked Size

48.2 kB

Total Files

7

Last publish

Collaborators

  • rfrenchy