1.1.3 • Published 4 years ago

@c-bandy/svelte-material-icons v1.1.3

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

Svelte Material Icons

Install

npm i @c-bandy/svelte-material-icons

Usage

<script>
  import Check from "@c-bandy/svelte-material-icons/dist/Check.svelte";
</script>

<Check {color} {size} {width} {height} {viewBox} />

Search Icons

You can search icons at materialdesignicons.com

Icon names are PascalCased from the original name in the site

check-outline converts to CheckOutline.svelte

Icon Example

<script>
  export let size = "1em";
  export let width = size;
  export let height = size;
  export let color = "currentColor";
  export let viewBox = "0 0 24 24";
</script>

<svg {width} {height} {viewBox}>
  <path d="..." fill={color} />
</svg>

Notes

If you wrap the icon into other element set the display of the parent element to flex

Contribute

This is a simple source to source compiler that transforms the svg files from https://github.com/Templarian/MaterialDesign to svelte components using cheerio

To develop you can do

git clone https://github.com/ramiroaisen/svelte-material-icons
cd svelte-material-icons
npm i
npm run build
1.1.3

4 years ago

1.1.1

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago