0.0.1 • Published 4 years ago
react-pll v0.0.1
react-pll
A React component for programming-languages-logos.
I currently use this package on languages.abrannhe.com
Install
$ npm install react-pll
⚠️ DEPRECATED
$ npm install @programming-languages-logos/react
Using Github Registry?
$ npm install abranhe@react-pll
Usage
import React from 'react';
import Pll from 'react-pll'
export default () => {
return(
<Pll
alt="Python Logo"
height={30}
language="python"
/>
);
};
Props
A cheatsheet of all available props.
Prop | Type | Default | Description |
---|---|---|---|
language | string | cpp | The programming language logo |
fallback | any | null | Optional fallback tha renders if the given language doesn't exist |
You can also add the images props.
Example:
<Pll language="swift" alt="The Swift Logo">
Related
- programming-languages-logos: High Resolution Programming Languages Logos.
License
MIT © Carlos Abraham