Introduced 3 sets of interface for each of the qr types, i.e. Canvas, SVG and Image.
Added inline comment for better developer experience. (Copied from the readme)
Added 'alt' to the <img>
Note:
This may introduce breaking change, i.e. when someone uses <Canvas but provided an option prop of type. The fix should be simple, delete that prop. Screenshot below shows the error caused by this breaking change, where it was possible to provide a type prop to a Canvas in the past, but it is not relevant.
Fixes #40
Done:
<img>
Note: This may introduce breaking change, i.e. when someone uses
<Canvas
but provided an option prop oftype
. The fix should be simple, delete that prop. Screenshot below shows the error caused by this breaking change, where it was possible to provide atype
prop to a Canvas in the past, but it is not relevant.