{"repo":"Cweili/svelte-fa","free":true,"listed":false,"github":"https://github.com/Cweili/svelte-fa","clone":"git clone https://github.com/Cweili/svelte-fa.git","description":"Tiny FontAwesome component for Svelte","language":"Svelte","stars":399,"topics":["fontawesome","font-awesome","svelte","sveltejs","component","icon","svg","svg-icons"],"license":"MIT","category":"ui-components","readme_excerpt":"svelte-fa [![npm][badge-version]][npm] [![bundle size][badge-size]][bundlephobia] [![npm downloads][badge-downloads]][npm] [![license][badge-license]][license] [![github][badge-issues]][github] [![build][badge-build]][workflows] [![coverage][badge-coverage]][coveralls] Tiny [FontAwesome][fontawesome] component for [Svelte][svelte]. FontAwesome version 5 and 6 FontAwesome svg icons Tree-shakable, only import used icons No CSS file required FontAwesome layering FontAwesome duotone icons [Documents and examples][doc]. Installation Install FontAwesome icons via [official packages][fontawesome-npm], for example: Icons gallery: [FontAwesome icons][fontawesome-icons] Work with [Sapper][sapper] You may need to install the component as a devDependency: Work with [SvelteKit][sveltekit]/[Vite][vite] You may need to import the component explicitly as below: When using typescript with SvelteKit/Vite, you may also needed to add type definitions that redirect to the non- index.es export: Usage Fa Properties icon : icon from [FontAwesome packages][fontawesome-npm], for example: @fortawesome/free-solid-svg-icons , icons gallery: [FontAwesome icons][fontawesome-icons] class : string values ${your preffered any css class} size : string values xs , sm , lg or 2x , 3x , 4x , ..., ${number}x color : string icon color, default currentColor fw : boolean fixed width pull : string values left , right scale : number string transform scale, unit is em , default 1 translateX : number string transform pos","default_branch":null,"files":null,"tree":[],"storefront":"/r/Cweili","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Cweili/svelte-fa/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}