frontend / 5.49.1 /image /shared /Image.svelte
gradio-pr-bot's picture
Upload folder using huggingface_hub
2d37aa2 verified
<script lang="ts">
import type { HTMLImgAttributes } from "svelte/elements";
interface Props extends HTMLImgAttributes {
"data-testid"?: string;
}
type $$Props = Props;
export let src: HTMLImgAttributes["src"] = undefined;
</script>
<!-- svelte-ignore a11y-missing-attribute -->
<img {src} {...$$restProps} on:load />
<style>
img {
object-fit: cover;
}
</style>