Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to add youtube insta icon to next js

// installation
npm install @fortawesome/fontawesome-svg-core @fortawesome/free-brands-svg-icons @fortawesome/free-solid-svg-icons @fortawesome/react-fontawesome

//_app.js 
import '@fortawesome/fontawesome-svg-core/styles.css'; //importing font awesome css
import { config } from '@fortawesome/fontawesome-svg-core';
config.autoAddCss = false; // Tell Font Awesome to skip adding the CSS automatically since it's being imported above

// component.js
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';

// for brand icons
import {
  faYoutube,
  faFacebook,
  faTwitter,
  faInstagram
} from "@fortawesome/free-brands-svg-icons";

// for solid icons
import {faSearch} from "@fortawesome/free-solid-svg-icons"


<FontAwesomeIcon icon={faFacebook} />// use like this
Comment

PREVIOUS NEXT
Code Example
Javascript :: insta icon in next js 
Javascript :: window onload javascript 
Javascript :: array to set javascript 
Javascript :: select onchange pass option value in angular 6 
Javascript :: discord js give role to all member 
Javascript :: how to run react build locally 
Javascript :: image is not displaying in react js 
Javascript :: fs in angular 
Javascript :: javascript set delay 
Javascript :: js refresh button 
Javascript :: how to add keyboard shortcuts javascript 
Javascript :: nuxt 18 mountend route push 
Javascript :: create react app and tailwind 
Javascript :: javascript trim each element in array 
Javascript :: js get local date 
Javascript :: local storage check max size 
Javascript :: js conditional object property 
Javascript :: javascript find parent with class 
Javascript :: get columns of array list json js 
Javascript :: document ready js 
Javascript :: javascript random letter generator 
Javascript :: jest expect href 
Javascript :: leaflet change zoom button position 
Javascript :: fullscreen mode javascript 
Javascript :: play video in fullscreen 
Javascript :: JavaScript performing an integer division 
Javascript :: batch md 
Javascript :: fetch in js 
Javascript :: javascript disable copy paste 
Javascript :: viewdata array mvc razor javascript 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =