Skip to main content
Create new
Introduction
Reactivity
Props
Logic
Events
Bindings
Lifecycle
Stores
Motion
Transitions
Animations
Easing
SVG
Actions
Classes
Component composition
Context API
Special elements
Module context
Debugging
7GUIs
Miscellaneous
App.svelte
ProductShow.svelte
<script>
import ProductShow from "./ProductShow.svelte"
function getLink(){
return "https://source.unsplash.com/random/800x600"
}
let image_collections = [
"https://source.unsplash.com/uFdRfAkM1DM",
"https://source.unsplash.com/RQOABS5RH0M",
"https://source.unsplash.com/YhPYgb8ZCBw",
"https://source.unsplash.com/E5lK_COkD2E"
];
let image_collections_two = [
"https://source.unsplash.com/kbPZmDxPK9M",
"https://source.unsplash.com/90ApxSJTTdg",
"https://source.unsplash.com/S7MzI1UjSPg",
"https://source.unsplash.com/7Mtz-FAcP98"
]
</script>

<style>
</style>

<svelte:head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
</svelte:head>
<div class="container">
<div class="row">
<div class="col">
<ProductShow images={image_collections}/>
</div>
<div class="col">
<ProductShow images={image_collections_two}/>
</div>
</div>
loading Svelte compiler...
/* Select a component to see its compiled code */
result = svelte.compile(source, {
generate: ,
});
/* Select a component to see its compiled code */