React components for NFL team logos
$ npm install react-nfl-logos
import React from 'react';
import { ARI } from 'react-nfl-logos';
const Example = () => {
return <ARI />; // Loads the Arizona Cardinals logo
};
export default Example;
or include all icons
import React from 'react';
import * as NFLIcons from 'react-nfl-logos';
const Example = () => {
return <NFLIcons.ARI />; // Loads the Arizona Cardinals logo
};
export default Example;
Size can be easily configured (Default of 100px)
import React from 'react';
import { ARI } from 'react-nfl-logos';
const Example = () => {
return (
<div>
<ARI size={60} />
<ARI /> // Default of 100px
<ARI size={140} />
</div>
);
};
export default Example;
Results in