You can use React-Markdown:

import { IntrinsicElements } from "react-markdown/src/ast-to-react";

interface InputContainerProps1 extends Partial<IntrinsicElements['div']>{
  minWidth?: string | number

The Partial Class constructs a type with all properties of IntrinsicElements['div'] set to optional. Under the hood the Partial interface looks like this:

type Partial<T> = { [P in keyof T]?: T[P]; };


What worked for me was defining the type before hand

type SpanProps = JSX.IntrinsicElements['span']

interface IconProps extends SpanProps {
  weight?: string
  src: string

Related Query

More Query from same tag