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

svelte-bootstrap-icons

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-bootstrap-icons

Bootstrap SVG icons as Svelte components

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.8K
increased by10.31%
Maintainers
1
Weekly downloads
 
Created
Source

svelte-bootstrap-icons

NPM Build

Bootstrap SVG icons as Svelte components.

Try it in the Svelte REPL.

Icon Preview

Install

This library requires Svelte version >=3.20 because it uses $$restProps.

yarn add -D svelte-bootstrap-icons
# OR
npm i -D svelte-bootstrap-icons

Usage

<script>
  import Alarm from "svelte-bootstrap-icons/lib/Alarm";
</script>

<Alarm />

Refer to ICON_INDEX.md for list of icons.

API

$$restProps are forwarded to the svg element.

Forwarded events

  • on:click
  • on:mouseover
  • on:mouseenter
  • on:mouseout
  • on:keydown

Changelog

Development workflow

Svelte components are generated from "bootstrap-icons" SVG files using svg-to-svelte.

A single script (build.js) specifies the input and output folders.

The generated Svelte components are located in the lib folder, which is ignored by Git but published to NPM.

Documentation is generated using the list of icon module names from the source library (see ICON_INDEX.md).

License

MIT

Keywords

FAQs

Package last updated on 28 Oct 2020

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