You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/runtime/samples/component-slot-fallback-2/main.svelte

24 lines
529 B

<script>
import Outer from "./Outer.svelte";
import Inner from "./Inner.svelte";
import {model} from "./store.svelte";
export let props = '';
export let fallback = '';
export function getSubscriberCount() {
return model.getCount();
}
</script>
<Outer slotProps={props} defaultValue={fallback} let:slotProps>
<Inner value={slotProps} />
</Outer>
<Outer slotProps={props} defaultValue={fallback} let:slotProps>
<Inner value={slotProps} />
</Outer>
<Outer slotProps={props} defaultValue={fallback}>
</Outer>