shellscape / jsx-email

Build emails with a delightful DX
https://jsx.email
MIT License
902 stars 28 forks source link

feat(jsx-email): QrCode component #93

Closed Connorbelez closed 7 months ago

Connorbelez commented 7 months ago

Component / Package Name:

This PR contains:

Are tests included?

Breaking Changes?

If yes, please include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking.

List any relevant issue numbers:

Description

This PR adds a new feature/component. A QR code which is buffered into a dataURL and passed as the src for a regular img component. sample usage: import { QrCode } from 'jsx-email';

const Email = () => { return ( <QrCode src="https://example.com" alt="QR Code" size={300} correctionLevel="H" /> ); };

shellscape commented 7 months ago

Looks like there's a linting error that snuck in upstream. I'll get that fixed today, and update your branch.

lordelogos commented 7 months ago

@Connorbelez Thank you for this PR 👏🏽

@shellscape This is ready to go🚀

shellscape commented 7 months ago

@Connorbelez thanks for submitting this!

shellscape commented 6 months ago

@Connorbelez apparently the API for qrcode is different when in Node versus when in the browser. Very odd.