Socket
Book a DemoInstallSign in
Socket

@si-components/svelte

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@si-components/svelte

svelte component for simple-icons

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

@si-components/svelte

Svelte component for simple-icons

Installation

npm install @si-components/svelte simple-icons

simple-icons must be installed as a peer dependency.

Usage

<script>
  import SIIcon from '@si-components/svelte'
  // import icon from simple-icons
  import {siSvelte} from 'simple-icons/icons'
</script>

<!-- pass icon into component -->
<SIIcon icon={siSvelte} />

<!-- pass width, height, and color -->
<SIIcon icon={siSvelte} width={100} height={100} color="#{siSvelte.hex}" />

<!-- extra attributes are passed to svg -->
<SIIcon icon={siSvelte} svgProps={{ stroke: '#00ff00', 'stroke-width': 2 }} />

Keywords

simple-icons

FAQs

Package last updated on 29 Nov 2021

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