This package provides the Simple Icons 11.5.0 packaged as a set of Svelte components.
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
All icons are imported from a single file, where [ICON SLUG] is replaced by a capitalized slug.
<!-- Import a specific icon by its slug as: -->
<!-- import { Si[ICON SLUG] } from 'simple-icons'; -->
<script>
import { SiReact, SiSvelte, SiDocker } from "@icons-pack/svelte-simple-icons";
</script>
<SiSvelte color="#FF3E00" size={90} />
<SiReactJs color="#61DAFB" size={50} />
<SiDocker />
<!-- title default "Svelte" -->
<script>
import { SiSvelte } from "@icons-pack/svelte-simple-icons";
</script>
<SiSvelte title="My title" />
<script>
import { SiSvelte } from "@icons-pack/svelte-simple-icons";
</script>
<SiSvelte class="myStyle" />
<style>
.myStyle {
width: 35px;
height: 35px;
}
</style>