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

14 lines
375 B
Svelte
Raw Normal View History

2020-09-15 12:53:02 +02:00
<script>
import { getContext } from "svelte"
// Add this back once we can define specific design options to expose
// 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-21 12:32:26 +01:00
<i style={`color: ${color};`} class={`${icon} ${size}`} />