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

github.com/icons-pack/svelte-simple-icons

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/icons-pack/svelte-simple-icons

  • v2.2.0+incompatible
  • Source
  • Go
  • Socket score

Version published
Created
Source
svelte simple icons

svelte-simple-icons

This package provides the Simple Icons 4.23.0 packaged as a set of Svelte components.

www.npmjs.com! builds! downloads licence

Installation

Install the package in your project directory with:

// with yarn
yarn add @icons-pack/svelte-simple-icons

// with npm
npm add @icons-pack/svelte-simple-icons

Usage

You can use simpleicons.org to find a specific icon. When importing an icon, keep in mind that the names of the icons are upperCamelCase , for instance:

  • Material Design is exposed as { Materialdesign } from @icons-pack/svelte-simple-icons
  • azure devOps is exposed as { Azuredevops } from @icons-pack/svelte-simple-icons

These are some exceptions to this rule:

  • 500px is exposed as { FiveHundredPx } from @icons-pack/svelte-simple-icons
  • c++ is exposed as { Cplusplus } from @icons-pack/svelte-simple-icons
  • .Net is exposed as { DotNet } from @icons-pack/svelte-simple-icons
  • D3.js is exposed as { D3DotJs } from @icons-pack/svelte-simple-icons
  • dev.to is exposed as { DevDotTo } from @icons-pack/svelte-simple-icons
  • webcomponents.org is exposed as { WebcomponentsDotOrg } from @icons-pack/svelte-simple-icons
  • X.Org is exposed as { XDotOrg } from @icons-pack/svelte-simple-icons
  • FerrarinDotVDot is exposed as { FerrarinDotVDot } from @icons-pack/svelte-simple-icons

Demo

Edit codesandbox

Basic example

  <script>
    import { ReactJs, Svelte, Docker } from "@icons-pack/svelte-simple-icons";
  </script>

  <Svelte color="#FF3E00" size={90} />

  <ReactJs color="#61DAFB" size={50} />

  <Docker />

Change title

  <!-- title default "Svelte" -->
  <script>
    import { Svelte } from "@icons-pack/svelte-simple-icons";
  </script>

  <Svelte title="My title" />

Custom styles

  <script>
    import { Svelte } from "@icons-pack/svelte-simple-icons";
  </script>

  <Svelte class="myStyle" />

  <style>
    .myStyle {
      width: 35px;
      height: 35px;
    }
  </style>

FAQs

Package last updated on 15 May 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

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