react-bootstrap-icons-pro
v1.2.0
Published
Up-to-date Bootstrap icons (v1.13.2) as React components
Readme
React Bootstrap Icons Pro
Bootstrap Icons as customizable React components. Based on Bootstrap Icons 1.13.2 and compatible with React 16.8 and later, including React 17, 18, and 19.
Install
npm install react-bootstrap-icons-proQuick start
Import the icons you need and use them like any React component:
import { BiArrowClockwise, BiCalendar, BiSearch } from 'react-bootstrap-icons-pro';
export default function App() {
return (
<div>
<BiArrowClockwise />
<BiCalendar />
<BiSearch />
</div>
);
}Customize
Icons inherit the surrounding text color and font size by default. Set color
and size props to customize them; standard SVG props such as className and
aria-label are also supported.
import { BiSearch } from 'react-bootstrap-icons-pro';
export default function SearchButton() {
return <BiSearch size={24} color='royalblue' aria-label='Search' />;
}| Prop | Default | Description |
| ------- | -------------- | ----------------------------------------------------------- |
| size | 1em | Icon width and height; accepts a number or CSS size string. |
| color | currentColor | Icon fill color. |
Global styles and text alignment
Every icon includes the .bi class, so you can apply shared styles. Use
vertical-align: middle to align an inline icon with adjacent text:
.bi {
display: inline-block;
font-size: 1.3em;
vertical-align: middle;
}<p>
<BiSearch /> Search
</p>Find an icon
Browse the Bootstrap Icons catalog. Components
are exported with a Bi prefix—for example, the search icon is BiSearch.
FAQ
Why use this package?
It provides Bootstrap Icons as individually importable React components, with props for common customization such as size and color.
Why are components prefixed with Bi?
The prefix identifies Bootstrap icons and avoids naming conflicts. It also
keeps component names valid for icons whose names start with a number, such as
1-circle (Bi1Circle).
