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

16 lines
339 B
Svelte
Raw Normal View History

2020-09-15 12:53:02 +02:00
<script>
import { getContext } from "svelte"
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>
<i
style={`color: ${color};`}
class={`${icon} ${size}`}
use:styleable={$component.styles} />