Answers for "props type svg"

1

props type svg

// this is an example in how to type props of an SVG

function SvgIcon(props: React.SVGProps<SVGSVGElement>) {
	return (
      <svg {...props}>
      ...
      </svg>
    )
}
Posted by: Guest on March-15-2022

Browse Popular Code Answers by Language