React Bootstrap Icons

1.11.6 · active · verified Tue Apr 21

react-bootstrap-icons is a specialized library that provides the entirety of the Bootstrap Icons collection as individual, configurable React components. Currently, on version 1.11.6, it supports Bootstrap Icons v1.13.1, offering over 2000 SVG icons for use in React applications. The library is actively maintained, with updates typically aligning with new releases of the upstream Bootstrap Icons library. Its primary differentiator is the direct conversion of each icon into a callable React component, allowing for easy integration and customization via standard React props like `color`, `size`, and `className`. It also ships with TypeScript types, enhancing developer experience by providing strong typing for icon names and component props. Unlike generic SVG icon libraries, it is exclusively focused on the Bootstrap Icons set.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates importing and rendering multiple Bootstrap Icons components with inline props for color, size, className, and accessibility titles.

import React from 'react';
import { Stopwatch, PaletteFill, Star } from 'react-bootstrap-icons';

export default function MyIconDisplay() {
  return (
    <div style={{ display: 'flex', alignItems: 'center', gap: '1rem' }}>
      <Stopwatch
        color="teal"
        size={48}
        className="my-custom-icon stopwatch-timer"
        title="Time tracking icon"
      />
      <PaletteFill
        color="#8A2BE2" 
        size={96}
        className="my-custom-icon color-picker"
        title="Color palette"
      />
      <Star
        color="gold"
        size={32}
        className="my-custom-icon rating-star"
        title="Rating star"
      />
      <p>
        These are some example Bootstrap icons rendered as React components with custom styling and accessibility titles.
      </p>
    </div>
  );
}

view raw JSON →