Added width option

This commit is contained in:
Patrick Alvin Alcala 2025-09-26 17:45:30 +08:00
parent 510cff943b
commit 4119ee870e

View file

@ -12,7 +12,7 @@ export default (props: Props) => {
return (
<>
<section>
<img src={qrcode()} alt="QR Code" style={`width: ${props.width || 'auto' }rem`}/>
<img src={qrcode()} alt="QR Code" style={`width: ${props.width || 'auto'}rem`} />
</section>
</>
)