Git Product home page Git Product logo

svelte-simple-icons's Introduction

svelte simple icons

svelte-simple-icons

This package provides the Simple Icons 5.7.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>

svelte-simple-icons's People

Contributors

wootsbot avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.