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/transition-js-slot-2/main.svelte

19 lines
249 B

<script>
import Nested from './Nested.svelte';
let name = 'Foo';
let visible = true;
export function show() {
visible = true;
}
export function hide() {
visible = false;
name = 'Bar';
}
</script>
<Nested {visible}>
{name}
</Nested>