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

21 lines
364 B
Svelte
Raw Normal View History

2020-02-20 18:06:50 +01:00
<script>
import { getContext } from "svelte"
const { styleable } = getContext("sdk")
const styles = getContext("style")
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>
<img
{height}
{width}
class={className}
src={url}
alt={description}
use:styleable={styles} />