How to Use

  • Enter Text/URL: Type a URL or text in the input field (e.g., https://example.com or Hello, World!).

  • Generate QR Code: Click "Generate QR Code" or press Enter to create the QR code.

  • View QR Code: The QR code appears on the canvas below the input.

  • Download QR Code: Click "Download QR Code" to save the QR code as a PNG file.

  • Input Validation: If the input is empty, an alert prompts you to enter text.

Features

  • Responsive Design: Uses Tailwind CSS for a clean, mobile-friendly interface.

  • Real-Time Generation: Generates QR codes instantly upon clicking the button or pressing Enter.

  • Downloadable Output: Allows downloading the QR code as a PNG file.

  • External Library: Uses the qrcode library (via CDN) for reliable QR code generation.

  • Error Handling: Alerts if the input is empty or if QR code generation fails.