Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

twitter icon in 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 :: prepend element jquery 
Javascript :: text to Speech in javascript code 
Javascript :: javascript set input field value 
Javascript :: javascript create div with class 
Javascript :: react split array into chunks 
Javascript :: jquery get value radio by name 
Javascript :: html loop through array 
Javascript :: canvas full screen js 
Javascript :: timer in java script 
Javascript :: jquery serialize form data and submit 
Javascript :: react native activity indicator 
Javascript :: forcechange input reactiveform 
Javascript :: moment calculate duration 
Javascript :: get x characters from string javascript 
Javascript :: js array to comma separated list 
Javascript :: axios file upload 
Javascript :: javascript add string to middle of string 
Javascript :: javascript react reverse map 
Javascript :: nest js doesnt recognize changes 
Javascript :: get distance of element from top of page javascript 
Javascript :: jquery class list 
Javascript :: create json string c# 
Javascript :: check a checkbox jquery 
Javascript :: javascript replace <br with n 
Javascript :: how to update angular version 
Javascript :: moment js day name language 
Javascript :: yellowbox react native 
Javascript :: css font size jsx 
Javascript :: validate json file programmatically in python 
Javascript :: document load complete jquery 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =