- Blade Component
- Facade
- Artisan CLI
The Common options:Generate a PNG embedded as a base64 data URI:Pass extra HTML attributes directly:Any attributes not recognized as component props are forwarded to the rendered element:
<x-qr-code> component is the simplest way to embed a QR code in a template. It handles SVG injection and accessibility attributes automatically.When
format is svg, the component injects the SVG inline (including an accessible <title> and role="img"). When format is png or webp, it renders an <img> tag with a base64 src attribute — no file needs to be written to disk.Next steps
Blade Component
See every prop the
<x-qr-code> component accepts, including gradient and eye-style customization.Facade Reference
Explore the full
QrCode facade API — colors, gradients, styles, image merging, and all fluent methods.Data Types
Generate QR codes for WiFi, vCard, SMS, Email, WhatsApp, Telegram, BTC, Ethereum, and more.