You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing a component that extend the functionality of a <span> element and I was looking to extends the props with the types from svelte/elements but there does not seems to be a type HTMLSpanAttributes
Reproduction
pnpx sv create
create a component
<script lang="ts">
import { type HTMLSpanAttributes } from 'svelte/elements';
interface Props extends HTMLSpanAttributes {
msg: string
}
let {msg. ...restProps}: Props = $props();
</script>
<span {...restProps}>
{msg}
</span>
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
I am writing a component that extend the functionality of a
<span>
element and I was looking to extends the props with the types fromsvelte/elements
but there does not seems to be a typeHTMLSpanAttributes
Reproduction
pnpx sv create
create a component
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: