import { ButtonHTMLAttributes, FC } from 'react'; type ButtonProps = ButtonHTMLAttributes<{}> export function Button(props: ButtonProps) { return <button {...props}>hello</button> } <script lang="ts"> import type { HTMLButtonAttributes } from "svelte/elements"; interface $$Props extends HTMLButtonAttributes {} </script> <button {...$$props}> hello </button>