Skip to content

Instantly share code, notes, and snippets.

@NTag
Created January 2, 2019 22:00
Show Gist options
  • Save NTag/bdf0c7b4cabb83dfc35e1d8006ffa8dc to your computer and use it in GitHub Desktop.
Save NTag/bdf0c7b4cabb83dfc35e1d8006ffa8dc to your computer and use it in GitHub Desktop.
import { library } from '@fortawesome/fontawesome-svg-core';
import { faCloudSun } from '@fortawesome/free-solid-svg-icons';
import FontAwesomeIcon from '@ntag/react-fontawesome';
library.add(faCloudSun);
export const Weather = () => (
<div>
<h1>Weather</h1>
<FontAwesomeIcon icon="cloud-sun" fill={['#3C6997', '#EDFF71', '#F1DB4B']} />
</div>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment