Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

brand icons 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 :: fontawesome in next js 
Javascript :: equivalent of useHistory in react 
Javascript :: javascript check if date is less than today 
Javascript :: reset date input javascript 
Javascript :: get rid of header bar react native 
Javascript :: how to check connected devices in react native 
Javascript :: how to click button programmatically in jquery 
Javascript :: remove multiple values from array javascript 
Javascript :: javascript HOW set delay 
Javascript :: js is letter 
Javascript :: bootstrap datetimepicker onchange event 
Javascript :: js mobile prevent image mousedown 
Javascript :: disable option dropdown jquery 
Javascript :: import jqueery vanilla js 
Javascript :: javascript array to comma separated string 
Javascript :: javascript custom events with data 
Javascript :: jquery select radio by name 
Javascript :: username regex 
Javascript :: sort ip address javascript 
Javascript :: sum of positive javascript 
Javascript :: random alphabet generator node js 
Javascript :: check if class is active jquery 
Javascript :: This version of CLI is only compatible with Angular versions 0.0.0 || ^10.0.0-beta || =10.0.0 <11.0.0, but Angular version 9.1.3 was found instead. 
Javascript :: is(:checked 
Javascript :: js addeventlistener mouseout 
Javascript :: ajax request 
Javascript :: how to call a javascript function in html without any event 
Javascript :: get method 
Javascript :: js queryselector radio checked 
Javascript :: @editorjs/list window not defined 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =