How to use react-bootstrap-icons ?

  1. install react-bootstrap-icons dependency
npm i react-bootstrap-icons
  • here we have imported the icon that we need like “trash”
  • and then we added it as a componentt
  • we can give any color , size and we can send it as a prop in the component.
import React from ‘react’import { Trash } from ‘react-bootstrap-icons’import { PencilSquare } from ‘react-bootstrap-icons’function milestone() {return (<div><PencilSquare size={35} /><Trash size={35} /></div>)}export default milestone

--

--

Software Engineer, who loves challenges and new technologies. :)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
sandeep negi

Software Engineer, who loves challenges and new technologies. :)