Documentation Index
Fetch the complete documentation index at: https://mintlify.com/react-icons/react-icons/llms.txt
Use this file to discover all available pages before exploring further.
Bootstrap Icons is the official icon library for Bootstrap, providing a comprehensive set of high-quality SVG icons for web projects.
Installation
Bootstrap Icons are included with React Icons:
Import Path
import { BsHeart, BsGithub, BsSearch } from 'react-icons/bs';
Library Details
Usage Examples
Basic Usage
import { BsHeart, BsGithub, BsSearch } from 'react-icons/bs';
function App() {
return (
<div>
<BsHeart />
<BsGithub />
<BsSearch />
</div>
);
}
Icon Variants
Bootstrap Icons provides multiple variants for many icons:
import {
BsHeart,
BsStar,
BsBookmark,
BsEnvelope,
BsHouse
} from 'react-icons/bs';
function OutlineIcons() {
return (
<div>
<BsHeart /> {/* Outline heart */}
<BsStar /> {/* Outline star */}
<BsBookmark /> {/* Outline bookmark */}
<BsEnvelope /> {/* Outline envelope */}
<BsHouse /> {/* Outline house */}
</div>
);
}
Default Bootstrap icons use the Bs prefix and are outlined.
import {
BsFillHeartFill,
BsFillStarFill,
BsFillBookmarkFill,
BsFillEnvelopeFill,
BsFillHouseFill
} from 'react-icons/bs';
function FilledIcons() {
return (
<div>
<BsFillHeartFill /> {/* Filled heart */}
<BsFillStarFill /> {/* Filled star */}
<BsFillBookmarkFill /> {/* Filled bookmark */}
<BsFillEnvelopeFill /> {/* Filled envelope */}
<BsFillHouseFill /> {/* Filled house */}
</div>
);
}
Filled icons use the BsFill prefix and Fill suffix.
Navigation
import {
BsHouse,
BsPerson,
BsGear,
BsBell,
BsSearch,
BsList,
BsX
} from 'react-icons/bs';
function Navigation() {
return (
<nav>
<button><BsList /> Menu</button>
<a href="/"><BsHouse /> Home</a>
<a href="/profile"><BsPerson /> Profile</a>
<a href="/settings"><BsGear /> Settings</a>
<a href="/notifications"><BsBell /> Notifications</a>
<button><BsSearch /> Search</button>
</nav>
);
}
import {
BsPlus,
BsPencil,
BsTrash,
BsDownload,
BsShare,
BsPrinter,
BsCheck,
BsX
} from 'react-icons/bs';
function ActionButtons() {
return (
<div className="action-bar">
<button className="btn-primary">
<BsPlus /> Add New
</button>
<button className="btn-secondary">
<BsPencil /> Edit
</button>
<button className="btn-danger">
<BsTrash /> Delete
</button>
<button className="btn-outline">
<BsDownload /> Download
</button>
<button className="btn-outline">
<BsShare /> Share
</button>
<button className="btn-outline">
<BsPrinter /> Print
</button>
</div>
);
}
Common Use Cases
Styling Bootstrap Icons
With Bootstrap CSS
Bootstrap Icons work seamlessly with Bootstrap CSS framework:
import { BsHeart, BsTrash } from 'react-icons/bs';
function BootstrapIntegration() {
return (
<div>
{/* Bootstrap button colors */}
<button className="btn btn-primary">
<BsHeart /> Like
</button>
<button className="btn btn-danger">
<BsTrash /> Delete
</button>
{/* Bootstrap text colors */}
<BsHeart className="text-danger" />
<BsCheckCircle className="text-success" />
<BsExclamationTriangle className="text-warning" />
<BsInfoCircle className="text-info" />
</div>
);
}
Size and Color
import { BsHeart } from 'react-icons/bs';
function StyledIcons() {
return (
<div>
{/* Inline styles */}
<BsHeart style={{ fontSize: '24px', color: '#dc3545' }} />
{/* CSS classes */}
<BsHeart className="fs-1 text-danger" />
{/* IconContext */}
<IconContext.Provider value={{ size: '1.5em', color: '#0d6efd' }}>
<BsHeart />
</IconContext.Provider>
</div>
);
}
Icon Naming Convention
Bootstrap Icons follow these patterns:
- Outline icons:
Bs[IconName] (e.g., BsHeart, BsStar)
- Filled icons:
BsFill[IconName]Fill (e.g., BsFillHeartFill, BsFillStarFill)
- Reverse icons:
BsReverse[IconName] (for directional variants)
All names use PascalCase and remove hyphens:
heart → BsHeart
heart-fill → BsFillHeartFill
arrow-right → BsArrowRight
Popular Bootstrap Icons
Navigation
BsHouse / BsFillHouseFill - Home
BsList - Menu/hamburger
BsX - Close/X
BsChevronDown - Dropdown
BsArrowLeft - Back arrow
BsSearch - Search
Actions
BsPlus - Add
BsPencil - Edit
BsTrash - Delete
BsDownload - Download
BsUpload - Upload
BsShare - Share
BsPrinter - Print
Status
BsCheckCircle / BsCheckCircleFill - Success
BsExclamationTriangle / BsExclamationTriangleFill - Warning
BsInfoCircle / BsInfoCircleFill - Info
BsXCircle / BsXCircleFill - Error
Content
BsHeart / BsFillHeartFill - Like
BsStar / BsFillStarFill - Rating
BsBookmark / BsFillBookmarkFill - Save
BsChat - Comment
BsEnvelope - Email
Integration with Bootstrap Components
With React Bootstrap
import { Button, Badge, Alert } from 'react-bootstrap';
import { BsPlus, BsBell, BsCheckCircle } from 'react-icons/bs';
function ReactBootstrapIntegration() {
return (
<div>
<Button variant="primary">
<BsPlus /> Add Item
</Button>
<Badge bg="danger">
<BsBell /> 5
</Badge>
<Alert variant="success">
<BsCheckCircle /> Success!
</Alert>
</div>
);
}
Resources
Bootstrap Icons Website
Browse and search all Bootstrap Icons
GitHub Repository
View source code and report issues
Search All Icons
Search Bootstrap Icons in React Icons preview
All Libraries
Explore other icon libraries