React component that converts the GitHub language into an icon.
$ npm install --save @altenull/github-lang-to-icon
import { GithubLangToIcon } from '@altenull/github-lang-to-icon';
render() {
return (
<GithubLangToIcon
lang="TypeScript"
size={64}
/>
);
}
Prop | Type | Default | Description |
---|---|---|---|
lang |
GithubLang | LowercasedGithubLang | type LowercasedGithubLang = Lowercase<GithubLang> | |
size |
number | undefined | 40 | Icon's width & height |
style |
React.CSSProperties | undefined |
GithubLang(type)
is based on response of List repository languages (Github API).- The source of below icon images is devicon.
- About repository languages (Github API)
Licensed under the MIT.