React/Typescript not recognizing iframe properties
As you can see in the lib.d.ts
file, it should be frameBorder
, not frameborder
.
Don't worry, it took me a while to spot it too!
See the Following Properties of typed files...
interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
allow?: string;
allowFullScreen?: boolean;
allowTransparency?: boolean;
frameBorder?: number | string;
height?: number | string;
marginHeight?: number;
marginWidth?: number;
name?: string;
sandbox?: string;
scrolling?: string;
seamless?: boolean;
src?: string;
srcDoc?: string;
width?: number | string;
}