react-os-icons
v1.0.6
Published
Tools to get os svg.
Downloads
162
Readme
react-os-icons
Tools to get os svg.
Install
yarn add react-os-icons
# or
npm i react-os-icons --save
Change log
https://github.com/Achaak/react-os-icons/blob/master/CHANGELOG.md
Functions
getOSIcon
Return the SVG of os.
Example:
const Component = getOSIcon({ os: "Windows", className: "class", style: { marginTop: 42 }, size: 42 })
Variables
OSList
Return the managed list of os.
Example:
console.log(OSList) // "Windows" | "Android" | "Fedora" | "Debian" | "Linux" | "Mac OS" | "Nintendo" | "PlayStation" | "BlackBerry" | "Ubuntu" | "Unix" | "Arch" | "iOS" | "Linux Mint" | "Elementary OS"
Crédits
https://github.com/edent/SuperTinyIcons