svelte-icons icon indicating copy to clipboard operation
svelte-icons copied to clipboard

Add common style props

Open NEO97online opened this issue 4 years ago • 0 comments

Svelte now supports style props: https://svelte.dev/docs#style_props

It allows you to pass props that can be used in css variables. We should add "color" and "size" as style props to avoid needing to write a wrapper element for styling.

The README example would be shortened to:

<script>
  import ChevronCircleUp from 'svelte-icons/fa/FaChevronCircleUp.svelte';
</script>

<ChevronCircleUp --color="red" --size="32px" />

NEO97online avatar Nov 02 '21 04:11 NEO97online