| Field | Type | Required | Description |
|---|---|---|---|
url |
str | ✔️ | The URL to generate a QR code for. |
logo |
Optional[str] | ➖ | The logo to include in the QR code. Can only be used with a paid plan on Dub. |
size |
Optional[float] | ➖ | The size of the QR code in pixels. Defaults to 600 if not provided. |
level |
Optional[operations.Level] | ➖ | The level of error correction to use for the QR code. Defaults to L if not provided. |
fg_color |
Optional[str] | ➖ | The foreground color of the QR code in hex format. Defaults to #000000 if not provided. |
bg_color |
Optional[str] | ➖ | The background color of the QR code in hex format. Defaults to #ffffff if not provided. |
hide_logo |
Optional[bool] | ➖ | Whether to hide the logo in the QR code. Can only be used with a paid plan on Dub. |
margin |
Optional[float] | ➖ | The size of the margin around the QR code. Defaults to 2 if not provided. |
include_margin |
Optional[bool] | ➖ | DEPRECATED: Margin is included by default. Use the margin prop to customize the margin size. |