October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk6 min

25 Free Bootstrap Button Examples: Hover, Icon and Social Styles

A practical gallery of 25 Bootstrap 5.3 button snippets, including hover effects, accessible icon controls, social navigation and responsive layouts.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Here are 25 reusable Bootstrap button examples for solid and outline styles, hover effects, icons, social links and responsive layouts. The snippets target Bootstrap 5.3 and use its standard button classes; add the CSS after Bootstrap’s stylesheet. They are starting points to adapt and check in your own page, not browser-tested components.

Set up Bootstrap 5.3

These examples use Bootstrap 5.3 classes. Include the framework stylesheet in your page, then place the custom CSS shown below after it. Bootstrap’s .btn class is the foundation; pair it with a variant such as .btn-primary, or define custom styling. If you use .btn alone, provide an explicit focus style. See the Bootstrap 5.3 button documentation.

As an Amazon Associate I earn from qualifying purchases.

For static button styling, the CSS is sufficient. Bootstrap JavaScript is not needed for the examples below. Components that toggle state or trigger plugin behavior need JavaScript; the Bootstrap 5.2 getting-started guide explains CDN setup and JavaScript dependencies: Get started with Bootstrap.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose the right element

  • Use <button type="button"> for an action such as saving or submitting a form. Use type="submit" when the button should submit its enclosing form.
  • Use <a href="..."> for navigation, including a link to a social profile or sharing destination.
  • Do not use a link as a pretend action just to get a button’s appearance. Bootstrap’s older CSS guidance recommends buttons where possible; verify any legacy markup against the version you deploy: Bootstrap CSS documentation.

Solid and outline button styles

Bootstrap’s built-in variants communicate visual hierarchy, not meaning by themselves. Make the label describe the action or destination; color alone is not conveyed to screen-reader users. The framework provides primary, secondary, success, danger, warning, info, light, dark and link variants. Outline variants use the same variant names with the btn-outline- prefix. Check contrast for the actual foreground and background, especially for light-colored buttons.

#1 Best Overall
Sale
Amazon Basics Wired QWERTY Keyboard, Works with Windows, Plug and Play, Easy to Use with Media Control, Full-Sized, Black
  • KEYBOARD: The keyboard works for Windows with hot keys that enable easy access to Media, My Computer, Mute, Volume up/down, and Calculator
  • EASY SETUP: Experience simple installation with the USB wired connection
  • VERSATILE COMPATIBILITY: This keyboard is designed to work with multiple Windows versions, including Vista, 7, 8, 10 offering broad compatibility across devices.
  • SLEEK DESIGN: The elegant black color of the wired keyboard complements your tech and decor, adding a stylish and cohesive look to any setup without sacrificing function.
  • FULL-SIZED CONVENIENCE: The standard QWERTY layout of this keyboard set offers a familiar typing experience, ideal for both professional tasks and personal use.

1. Primary action

<button type="button" class="btn btn-primary">Save changes</button>

2. Secondary action

<button type="button" class="btn btn-secondary">Cancel</button>

3. Success confirmation

<button type="button" class="btn btn-success">Mark complete</button>

4. Destructive action

<button type="button" class="btn btn-danger">Delete draft</button>

5. Warning action

<button type="button" class="btn btn-warning">Review changes</button>

6. Outline primary

<button type="button" class="btn btn-outline-primary">View details</button>

7. Outline secondary

<button type="button" class="btn btn-outline-secondary">More options</button>

8. Outline danger

<button type="button" class="btn btn-outline-danger">Remove item</button>

9. Dark button on a light surface

<button type="button" class="btn btn-dark">Open settings</button>

10. Link-style action

<button type="button" class="btn btn-link">Skip this step</button>

Hover and interaction states

Bootstrap variants already have interaction styling. These custom examples add a restrained lift, color transition or underline. Hover is not available on many touch devices, so each custom family includes a visible keyboard focus treatment as well. Keep active and disabled states distinct: a disabled control should not look actionable.

11. Lift on hover

<button type="button" class="btn btn-primary btn-lift">Explore features</button>

12. Darken on hover

<button type="button" class="btn btn-primary btn-darken">Continue</button>

13. Underline on hover

<a class="btn btn-outline-primary btn-underline" href="/features">See features</a>

14. Pill-shaped hover button

<button type="button" class="btn btn-success btn-pill">Confirm</button>

15. Subtle scale on hover

<button type="button" class="btn btn-dark btn-scale">Open dashboard</button>

CSS for examples 11–15

.btn-lift, .btn-darken, .btn-underline, .btn-pill, .btn-scale {
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.btn-lift:hover { transform: translateY(-2px); box-shadow: 0 .35rem .8rem rgba(0,0,0,.16); }
.btn-darken:hover { filter: brightness(.88); }
.btn-underline:hover { text-decoration: underline; text-underline-offset: .2em; }
.btn-pill { border-radius: 50rem; }
.btn-pill:hover { transform: translateY(-1px); }
.btn-scale:hover { transform: scale(1.03); }
.btn-lift:focus-visible, .btn-darken:focus-visible, .btn-underline:focus-visible,
.btn-pill:focus-visible, .btn-scale:focus-visible {
  outline: 3px solid #212529;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .btn-lift, .btn-darken, .btn-underline, .btn-pill, .btn-scale { transition: none; }
}

Buttons with icons

Bootstrap Icons is an official open-source SVG icon library: Bootstrap Icons. The snippets below assume the icon font is available to your project. When a visible label already names the action, mark its icon decorative with aria-hidden="true". For an icon-only control, put a clear accessible name on the button itself; a hover tooltip is not an adequate name.

Rank #2
Sale
Logitech MK270 Full Size Wireless Keyboard and Mouse Combo - Black
  • Reliable Plug and Play: The USB receiver provides a reliable wireless connection up to 33 ft (1), so you can forget about drop-outs and delays and you can take it wherever you use your computer
  • Type in Comfort: The design of this keyboard creates a comfortable typing experience thanks to the low-profile, quiet keys and standard layout with full-size F-keys, number pad, and arrow keys
  • Durable and Resilient: This full-size wireless keyboard features a spill-resistant design (2), durable keys and sturdy tilt legs with adjustable height
  • Long Battery Life: MK270 combo features a 36-month keyboard and 12-month mouse battery life (3), along with on/off switches allowing you to go months without the hassle of changing batteries
  • Easy to Use: This wireless keyboard and mouse combo features 8 multimedia hotkeys for instant access to the Internet, email, play/pause, and volume so you can easily check out your favorite sites

16. Download with label

<button type="button" class="btn btn-primary">
  <i class="bi bi-download" aria-hidden="true"></i> Download report
</button>

17. Search with label

<button type="button" class="btn btn-outline-secondary">
  <i class="bi bi-search" aria-hidden="true"></i> Search
</button>

18. Add item with label

<button type="button" class="btn btn-success">
  <i class="bi bi-plus-lg" aria-hidden="true"></i> Add item
</button>

19. Icon-only close control

<button type="button" class="btn btn-outline-secondary" aria-label="Close dialog">
  <i class="bi bi-x-lg" aria-hidden="true"></i>
</button>

20. Icon-only favorite control

<button type="button" class="btn btn-outline-danger" aria-label="Add to favorites">
  <i class="bi bi-heart" aria-hidden="true"></i>
</button>

Social navigation links

Social buttons are links when they take a reader to a profile or sharing destination. Replace the sample URLs with the intended destination; retain a meaningful accessible name even when the logo is the only visible content. Brand recognition does not replace link text for assistive technology.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

21. Facebook profile link

<a class="btn btn-primary" href="https://www.facebook.com/" aria-label="Visit our Facebook profile">
  <i class="bi bi-facebook" aria-hidden="true"></i> Facebook
</a>

22. X profile link

<a class="btn btn-dark" href="https://x.com/" aria-label="Visit our X profile">
  <i class="bi bi-twitter-x" aria-hidden="true"></i> X
</a>

23. LinkedIn profile link

<a class="btn btn-outline-primary" href="https://www.linkedin.com/" aria-label="Visit our LinkedIn profile">
  <i class="bi bi-linkedin" aria-hidden="true"></i> LinkedIn
</a>

24. Email sharing link

<a class="btn btn-secondary" href="mailto:?subject=Take%20a%20look">
  <i class="bi bi-envelope" aria-hidden="true"></i> Share by email
</a>

Responsive and grouped layouts

25. Full-width on small screens, inline on larger screens

Use Bootstrap’s responsive width utility so the action is easier to tap on narrow screens while staying compact on wider ones.

Rank #3
Sale
Logitech K120 Full Size Wired Keyboard USB Plug-and-Play Windows - Black
  • All-day Comfort: The design of this standard keyboard creates a comfortable typing experience thanks to the deep-profile keys and full-size standard layout with F-keys and number pad
  • Easy to Set-up and Use: Set-up couldn't be easier, you simply plug in this corded keyboard via USB on your desktop or laptop and start using right away without any software installation
  • Compatibility: This full-size keyboard is compatible with Windows 7, 8, 10 or later, plus it's a reliable and durable partner for your desk at home, or at work
  • Spill-proof: This durable keyboard features a spill-resistant design (1), anti-fade keys and sturdy tilt legs with adjustable height, meaning this keyboard is built to last
  • Plastic parts in K120 include 51% certified post-consumer recycled plastic*
<button type="button" class="btn btn-primary w-100 w-md-auto">Start free trial</button>

Bootstrap does not include a default w-md-auto utility in its standard utility set, so define it for the breakpoint you need:

@media (min-width: 768px) {
  .w-md-auto { width: auto !important; }
}

For a related group of actions, Bootstrap’s button group classes can keep controls visually connected; choose the primary action deliberately and avoid grouping unrelated destinations as if they were one control.

Rank #4
Sale
Redragon K521 Upgrade Rainbow LED Gaming Keyboard, 104 Keys Wired Mechanical Feeling Keyboard with Multimedia Keys, One-Touch Backlit, Anti-Ghosting, Compatible with PC, Mac, PS4/5, Xbox
  • 【Dreamy Rainbow Gaming Keyboard】K521 Gaming Keyboard Adopts a Different LED Backlight Design, Upgraded on the Traditional LED Backlight Effect, Making the Light More Penetrating, Giving You a More Dazzling Visual Effect, Making Your Gaming Process More Enjoyable
  • 【One Touch Opens & Visual Feast】The K521 Red Dragon Keyboard has a One-Touch on/off Lighting Button for Added Convenience. It also has a Three-Position Adjustable Breathing Mode and a Four-Position Adjustable Brightness Lighting Mode
  • 【Mechanical Feeling & Fast Tapping】The PC Keyboard Keys are Designed for Mechanical Feeling, Giving You a Better Feel During Use and the Ability to Trigger Keys Quickly, Allowing You to Win All Your Games
  • 【19 Keys Anti-Ghosting Keyboard】Anti-Ghosting Ensures Every Button Can Be Triggered. This Allows You to Trigger Key Combinations In The Game Accurately, And Each Skill Can Be Accurately Released to Increase Your Winning Rate. Redragon K521 Will Be Your Perfect Partner
  • 【12 Multimedia Combination Keys】The K521 Wired Gaming Keyboard is Equipped with 12 Multimedia Keys That Can Greatly Enhance Your Gaming/Office Efficiency and Make It More Convenient to Use
<div class="btn-group" role="group" aria-label="Document actions">
  <button type="button" class="btn btn-primary">Save</button>
  <button type="button" class="btn btn-outline-secondary">Preview</button>
  <button type="button" class="btn btn-outline-secondary">Cancel</button>
</div>
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Disabled buttons and final checks

In Bootstrap 5.3, disabled buttons suppress hover and active pointer behavior. Disabled anchors need separate treatment and aria-disabled="true"; an anchor does not become non-interactive merely by looking disabled. Prefer a native disabled button when the control is unavailable.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick Recap

SaleBestseller No. 1
SaleBestseller No. 3
Logitech K120 Full Size Wired Keyboard USB Plug-and-Play Windows - Black
Logitech K120 Full Size Wired Keyboard USB Plug-and-Play Windows - Black
Plastic parts in K120 include 51% certified post-consumer recycled plastic*; Product carbon footprint: 4.02 kg CO2e
$12.39
SaleBestseller No. 5
Logitech K270 Full Size Wireless Keyboard for Windows - Black
Logitech K270 Full Size Wireless Keyboard for Windows - Black
Plastic parts in K270 include 38% certified post-consumer recycled plastic; Eight hot keys: For instant access to the Internet, e-mail, music volume and more
$21.48
Best Value
Sale
Logitech K270 Full Size Wireless Keyboard for Windows - Black
  • All-day Comfort: This USB keyboard creates a comfortable and familiar typing experience thanks to the deep-profile keys and standard full-size layout with all F-keys, number pad and arrow keys
  • Built to Last: The spill-proof (2) design and durable print characters keep you on track for years to come despite any on-the-job mishaps; it’s a reliable partner for your desk at home, or at work
  • Long-lasting Battery Life: A 24-month battery life (4) means you can go for 2 years without the hassle of changing batteries of your wireless full-size keyboard
  • Simply plug the USB receiver into a USB port on your desktop, laptop or netbook computer and start using the keyboard right away without any software installation
  • Simply Wireless: Forget about drop-outs and delays thanks to a strong, reliable wireless connection with up to 33 ft range (5); K270 is compatible with Windows 7, 8, 10 or later
<button type="button" class="btn btn-primary" disabled>Submitting…</button>
  • Give every action a label that explains what it does; do not rely on color alone.
  • Use a native button for actions and an anchor with a real destination for navigation.
  • Check keyboard focus visibility, actual color contrast, and icon-only accessible names in the rendered page.
  • Do not communicate disabled state only by changing color, and do not apply disabled styling to a link that still works.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.