mirror of https://github.com/sveltejs/svelte
fix: migration script messing with attributes (#14260)
parent
ae9f53a3bd
commit
653f4accbd
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: migration script messing with attributes
|
@ -0,0 +1,5 @@
|
||||
<MyComponent
|
||||
variant="outlined"
|
||||
>
|
||||
<slot />
|
||||
</MyComponent>
|
@ -0,0 +1,15 @@
|
||||
<script>
|
||||
/**
|
||||
* @typedef {Object} Props
|
||||
* @property {import('svelte').Snippet} [children]
|
||||
*/
|
||||
|
||||
/** @type {Props} */
|
||||
let { children } = $props();
|
||||
</script>
|
||||
|
||||
<MyComponent
|
||||
variant="outlined"
|
||||
>
|
||||
{@render children?.()}
|
||||
</MyComponent>
|
Loading…
Reference in new issue