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
31
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

  • 2.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7.2K
increased by115.44%
Maintainers
1
Weekly downloads
 
Created
Source

svelte-bootstrap-icons

NPM

Bootstrap SVG icons as Svelte components with zero dependencies.

This package uses svelvg to convert source SVG files into Svelte components.

Try it in the Svelte REPL.


Installation

# Yarn
yarn add -D svelte-bootstrap-icons

# NPM
npm i -D svelte-bootstrap-icons

# pnpm
pnpm i -D svelte-bootstrap-icons

Usage

See ICON_INDEX.md for a list of supported icons.

Base import

<script>
  import { Alarm, Bank, CloudMoon } from "svelte-bootstrap-icons";
</script>

<Alarm />
<Bank />
<CloudMoon />

Import the icon directly for faster compiling during development.

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

Custom size

$$restProps are forwarded to the svg element.

Use the width and height attributes to customize the icon size. The default is 16px.

<Alarm width={24} height={24} />

Custom color

Use the fill attribute to specify a custom color.

<Alarm fill="red" />

Changelog

Changelog

Contributing

See the contributing guidelines.

License

MIT

Keywords

FAQs

Package last updated on 11 Nov 2022

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