0.7.0 • Published 3 years ago

@rfrenchy/csgo-matchboard-component v0.7.0

Weekly downloads
153
License
MIT
Repository
github
Last release
3 years ago

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.

0.7.0

3 years ago

0.6.0

3 years ago

0.5.0

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago