bootstrap-icons-react
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/bootstrap-icons-react package

1.0.0 • Public • Published

Bootstrap logo

Bootstrap Icons for React

Bootstrap Icons React components using SVG and JS
Explore Bootstrap Icons »

Installation

Bootstrap Icons are designed to work with Bootstrap components, from form controls to navigation. Bootstrap Icons are SVGs, so they scale quickly and easily and can be styled with CSS. While they're built for Bootstrap, they'll work in any project.

npm i bootstrap-icons-react --save

Usage

import React from 'react';
import { Star } from 'bootstrap-icons-react';
 
const App = () => {
  return <Star />
};
 
export default App;

Modify size:

<Star height={96} width={96} />

Pass props:

<Star className="mb-2" />

Include the whole icon library:

import React from 'react';
import * as Icon from 'bootstrap-icons-react';
 
const App = () => {
  return <Icon.Star />
};
 
export default App;

Features

  • No dependencies, just React
  • SVG Icons
  • Simple API
  • Compatible with Create React App

License

MIT

Package Sidebar

Install

npm i bootstrap-icons-react

Weekly Downloads

71

Version

1.0.0

License

MIT

Unpacked Size

2.97 MB

Total Files

7

Last publish

Collaborators

  • paullaros