1
0
Fork 0
mirror of synced 2024-09-19 10:48:30 +12:00
budibase/packages/standard-components/src/Icon.svelte

16 lines
339 B
Svelte
Raw Normal View History

2020-09-15 22:53:02 +12:00
<script>
import { getContext } from "svelte"
const { styleable } = getContext("sdk")
const component = getContext("component")
2020-09-15 22:53:02 +12: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} />