Is there a way to enhance the props of an existing JSX element in SolidJS and craft a custom interface similar to the ButtonProps
interface shown in this React example below?
import Solid from 'solid-js';
interface ButtonProps extends Solid.ButtonHTMLAttributes<HTMLButtonElement> {
title: string;
showIcon: boolean;
}
const Button: Solid.FC<ButtonProps> = ({ title, showIcon, ...props }) => {
return (
<button {...props}>
{title}
{showIcon && <Icon/>}
</button>
);
};