1.1.2 • Published 3 years ago

react-mlb-logos v1.1.2

Weekly downloads
4
License
ISC
Repository
github
Last release
3 years ago

React MLB Logos

npm

React components for MLB team logos

image

Install

$ npm install react-mlb-logos

Usage

import React from 'react';
import { TOR } from 'react-mlb-logos';

const Example = () => {
  return <TOR />; // Loads the Toronto Blue Jays logo
};

export default Example;

or include all icons

import React from 'react';
import * as MLBIcons from 'react-mlb-logos';

const Example = () => {
  return <MLBIcons.TOR />; // Loads the Toronto Blue Jays logo
};

export default Example;

Configuration

Size can be easily configured (Default of 100px)

import React from 'react';
import { TOR } from 'react-mlb-logos';

const Example = () => {
  return (
    <div>
      <TOR size={60} />
      <TOR /> // Default of 100px
      <TOR size={140} />
    </div>
  );
};

export default Example;

Results in

1.1.2

3 years ago

1.1.1

3 years ago

1.0.1

4 years ago

1.0.0

4 years ago