Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bootstrap-icons

Package Overview
Dependencies
Maintainers
3
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootstrap-icons

Official open source SVG icon library for Bootstrap

  • 1.11.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
444K
increased by2.79%
Maintainers
3
Weekly downloads
 
Created

What is bootstrap-icons?

The bootstrap-icons npm package provides a collection of free, high-quality icons designed to work seamlessly with Bootstrap. These icons can be easily integrated into web projects to enhance the visual appeal and user experience.

What are bootstrap-icons's main functionalities?

Basic Icon Usage

This feature allows you to include any of the available icons in your HTML by using the appropriate class name. The 'bi' class is a prefix for all Bootstrap icons, and 'bi-alarm' specifies the particular icon.

<i class='bi bi-alarm'></i>

Customizing Icon Size

You can easily customize the size of the icons by applying inline styles or CSS classes. In this example, the 'font-size' property is used to set the icon size to 2rem.

<i class='bi bi-alarm' style='font-size: 2rem;'></i>

Using Icons with Buttons

Bootstrap icons can be used within buttons to enhance their visual appeal. This example shows how to include an icon inside a Bootstrap button.

<button class='btn btn-primary'><i class='bi bi-alarm'></i> Alarm</button>

Changing Icon Color

You can change the color of the icons by applying inline styles or CSS classes. In this example, the 'color' property is used to set the icon color to red.

<i class='bi bi-alarm' style='color: red;'></i>

Other packages similar to bootstrap-icons

Keywords

FAQs

Package last updated on 03 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc