1
0
Fork 0
mirror of synced 2024-08-26 07:21:22 +12:00
budibase/packages/standard-components/src/Image.svelte

22 lines
382 B
Svelte
Raw Normal View History

2020-02-21 06:06:50 +13:00
<script>
import { getContext } from "svelte"
const { styleable } = getContext("sdk")
const component = getContext("component")
2020-02-26 04:21:23 +13:00
export let className = ""
export let url = ""
export let description = ""
export let height
export let width
2020-02-21 06:06:50 +13:00
</script>
<img
{height}
{width}
class={className}
src={url}
alt={description}
use:styleable={$component.styles}
/>