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

14 lines
290 B
Svelte

<script>
import { buildStyle } from "./buildStyle"
export let className = ""
export let url = ""
export let description = ""
export let height
export let width
$: style = buildStyle({ height, width })
</script>
<img class={className} {style} src={url} alt={description} />