@si-components/svelte
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@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 }} />

Package Sidebar

Install

npm i @si-components/svelte

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

4.11 kB

Total Files

7

Last publish

Collaborators

  • sachinraja