kevmodrome
6 years ago
No known key found for this signature in database
GPG Key ID: 828D8FE4D235B551
1 changed files with
10 additions and
6 deletions
-
packages/standard-components/src/Icon.svelte
|
|
|
@ -6,11 +6,15 @@ |
|
|
|
|
|
|
|
export let icon = "" |
|
|
|
export let size = "fa-lg" |
|
|
|
export let color = "#000" |
|
|
|
export let color = "#f00" |
|
|
|
$: styles = { |
|
|
|
...$component.styles, |
|
|
|
normal: { |
|
|
|
...$component.styles.normal, |
|
|
|
color |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<div style="color: {color}; display: contents"> |
|
|
|
<i |
|
|
|
use:styleable={$component.styles} |
|
|
|
class="{icon} {size}" /> |
|
|
|
</div> |
|
|
|
<i use:styleable={styles} |
|
|
|
class="{icon} {size}" /> |