mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
test: add ImageLoader
This commit is contained in:
parent
0dba95affd
commit
b5161b6b9e
1 changed files with 18 additions and 0 deletions
18
tests/ImageLoader.test.svelte
Normal file
18
tests/ImageLoader.test.svelte
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
<script lang="ts">
|
||||||
|
import { ImageLoader } from "../types";
|
||||||
|
|
||||||
|
let loading = false;
|
||||||
|
let loaded = false;
|
||||||
|
let error = false;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<ImageLoader
|
||||||
|
bind:loading
|
||||||
|
bind:loaded
|
||||||
|
bind:error
|
||||||
|
fadeIn
|
||||||
|
ratio="16x9"
|
||||||
|
src=""
|
||||||
|
on:load="{() => {}}"
|
||||||
|
on:error="{() => {}}"
|
||||||
|
/>
|
Loading…
Add table
Add a link
Reference in a new issue