2020-02-20 18:06:50 +01:00
|
|
|
<script>
|
2020-11-18 22:06:12 +01:00
|
|
|
import { getContext } from "svelte"
|
|
|
|
|
2020-11-20 10:50:10 +01:00
|
|
|
const { styleable } = getContext("sdk")
|
2020-11-24 12:02:10 +01:00
|
|
|
const component = getContext("component")
|
2020-11-18 22:06:12 +01:00
|
|
|
|
2020-02-25 16:21:23 +01:00
|
|
|
export let className = ""
|
|
|
|
export let url = ""
|
|
|
|
export let description = ""
|
|
|
|
export let height
|
|
|
|
export let width
|
2020-02-20 18:06:50 +01:00
|
|
|
</script>
|
|
|
|
|
2020-11-18 22:06:12 +01:00
|
|
|
<img
|
|
|
|
{height}
|
|
|
|
{width}
|
|
|
|
class={className}
|
|
|
|
src={url}
|
|
|
|
alt={description}
|
2021-05-04 12:04:42 +02:00
|
|
|
use:styleable={$component.styles}
|
|
|
|
/>
|