Installations
npm install svelte-bootstrap-icons
Developer
Developer Guide
Module System
ESM
Min. Node Version
Typescript Support
Yes
Node Version
18.19.0
NPM Version
10.2.3
Statistics
30 Stars
160 Commits
2 Forks
2 Watching
2 Branches
4 Contributors
Updated on 17 Oct 2024
Languages
HTML (34.43%)
JavaScript (29.57%)
Svelte (23.78%)
TypeScript (12.22%)
Total Downloads
Cumulative downloads
Total Downloads
458,860
Last day
-79.4%
357
Compared to previous day
Last week
-37.3%
4,372
Compared to previous week
Last month
-57.7%
21,324
Compared to previous month
Last year
380.4%
319,611
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
4
svelte-bootstrap-icons
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
1# NPM 2npm i svelte-bootstrap-icons 3 4# pnpm 5pnpm i svelte-bootstrap-icons 6 7# Bun 8bun add svelte-bootstrap-icons 9 10# Yarn 11yarn add svelte-bootstrap-icons
Usage
See ICON_INDEX.md for a list of supported icons.
Base import
1<script> 2 import { Alarm, Bank, CloudMoon } from "svelte-bootstrap-icons"; 3</script> 4 5<Alarm /> 6<Bank /> 7<CloudMoon />
Direct import (recommended)
Import the icon directly for faster compiling during development.
1<script> 2 import Alarm from "svelte-bootstrap-icons/lib/Alarm.svelte"; 3</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.
1<Alarm width={24} height={24} />
Custom color
Use the fill
attribute to specify a custom color.
1<Alarm fill="red" />
Changelog
Contributing
See the contributing guidelines.
License
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
packaging workflow detected
Details
- Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release.yml:7
Reason
3 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 3
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/metonym/svelte-bootstrap-icons/ci.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/metonym/svelte-bootstrap-icons/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/github-pages.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/metonym/svelte-bootstrap-icons/github-pages.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/github-pages.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/metonym/svelte-bootstrap-icons/github-pages.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/github-pages.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/metonym/svelte-bootstrap-icons/github-pages.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/metonym/svelte-bootstrap-icons/release.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/metonym/svelte-bootstrap-icons/release.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/metonym/svelte-bootstrap-icons/release.yml/master?enable=pin
- Info: 0 out of 4 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 4 third-party GitHubAction dependencies pinned
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/release.yml:10
- Warn: no topLevel permission defined: .github/workflows/ci.yml:1
- Warn: no topLevel permission defined: .github/workflows/github-pages.yml:1
- Warn: no topLevel permission defined: .github/workflows/release.yml:1
- Info: no jobLevel write permissions found
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 2 are checked with a SAST tool
Score
4.1
/10
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More