Bootstrap 5 icon buttons combine icons with Bootstrap's button component. This page covers 4 patterns — icon-only, text with icon, social buttons and floating action buttons — each using Bootstrap Icons.
Quick Setup
Icon buttons need Bootstrap 5 CSS and Bootstrap Icons:
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"/>
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" rel="stylesheet"/>
Key Classes Reference
| Class | What It Does |
|---|---|
.bi | Bootstrap Icon base class |
.bi-pencil | Edit icon |
.bi-trash | Delete icon |
.bi-download | Download icon |
.d-flex.align-items-center.gap-2 | Aligns icon and text |
.rounded-circle | Circular button shape |
aria-label | Accessibility for icon-only buttons |
.position-fixed | Fixed floating button |
1. Bootstrap 5 Icon-Only Buttons
Square and circular icon-only buttons using Bootstrap Icons. Add aria-label for accessibility.
2. Bootstrap 5 Buttons with Text and Icons
Buttons combining text and Bootstrap Icons. Icon on the left, right or both sides.
4. Bootstrap 5 Floating Action Button (FAB)
A fixed floating action button in the bottom-right corner. Common in mobile-first interfaces.
Frequently Asked Questions
Need a Full Bootstrap 5 Admin Dashboard?
Get a complete Angular 21 + Bootstrap 5 dashboard with 50+ components — built by the same team behind BootstrapPlanet.
Browse Templates →Use code FIRST30 for 30% off your first purchase.
3. Bootstrap 5 Social Media Buttons
Branded social media buttons with brand colors and Bootstrap Icons.