budibase/packages/standard-components/src/Icon.svelte

17 lines
356 B
Svelte
Raw Normal View History

2020-09-15 12:53:02 +02:00
<script>
import "@fortawesome/fontawesome-free/js/all.js"
import { getContext } from "svelte"
const { styleable } = getContext("app")
2020-09-15 12:53:02 +02:00
export let icon = ""
export let size = "fa-lg"
export let color = "#000"
export let styles
2020-09-15 12:53:02 +02:00
</script>
<i
style={`color: ${color};`}
class={`${icon} ${size}`}
use:styleable={styles} />