Skip to content

Commit

Permalink
Merge pull request #10 from domtronn/patch-1
Browse files Browse the repository at this point in the history
Support passing down of `class` prop
  • Loading branch information
benflap authored Aug 21, 2022
2 parents 2411b0b + f71a54c commit 2bb9516
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/component-template.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
export let size = 24;
export let color = "currentColor";
export let strokeWidth = 2;
let clazz = '';
export { clazz as class }
</script>

<svg
xmlns='http://www.w3.org/2000/svg'
class='icon icon-tabler icon-tabler-%%ORIGINAL_NAME%%'
class='icon icon-tabler icon-tabler-%%ORIGINAL_NAME%% {clazz}'
width={size}
height={size}
viewBox='0 0 24 24'
Expand All @@ -17,4 +20,4 @@
stroke-linejoin='round'
>
%%SVG_CONTENT%%
</svg>
</svg>

0 comments on commit 2bb9516

Please sign in to comment.