2020-09-15 12:53:02 +02:00
|
|
|
<script>
|
2020-11-18 22:06:12 +01:00
|
|
|
import { getContext } from "svelte"
|
|
|
|
|
2021-01-19 13:42:49 +01:00
|
|
|
const { styleable } = getContext("sdk")
|
|
|
|
const component = getContext("component")
|
2020-09-15 12:53:02 +02:00
|
|
|
|
|
|
|
export let icon = ""
|
|
|
|
export let size = "fa-lg"
|
|
|
|
export let color = "#000"
|
|
|
|
</script>
|
|
|
|
|
2021-01-19 13:42:49 +01:00
|
|
|
<div style="color: {color}; display: contents">
|
|
|
|
<i
|
|
|
|
use:styleable={$component.styles}
|
|
|
|
class="{icon} {size}" />
|
|
|
|
</div>
|