wa_qr_code: Create a 'wa-qr-code' component

View source: R/wa_qr_code.R

wa_qr_codeR Documentation

Create a wa-qr-code component

Description

Generated wrapper for the Web Awesome wa-qr-code component. Generated from Web Awesome metadata.

Usage

wa_qr_code(
  ...,
  id = NULL,
  class = NULL,
  style = NULL,
  value = NULL,
  label = NULL,
  background = NULL,
  dir = NULL,
  error_correction = NULL,
  fill = NULL,
  lang = NULL,
  radius = NULL,
  size = NULL
)

Arguments

...

Child content for the component's default slot.

id

Optional DOM id attribute for HTML, CSS, and JS targeting.

class

Optional CSS class string.

style

Optional inline CSS style string.

value

String. Default: "". The QR code's value.

label

String. Default: "". The label for assistive devices to announce. If unspecified, the value will be used instead.

background

String. Default: "". The background color. This can be any valid CSS color or transparent. It cannot be a CSS custom property.

dir

String. Optional Web Awesome attribute.

error_correction

Enumerated string. Allowed values: H, L, M, Q. Default: H. The level of error correction to use. Learn more

fill

String. Default: "". The fill color. This can be any valid CSS color, but not a CSS custom property.

lang

String. Optional Web Awesome attribute.

radius

Number. Default: 0. The edge radius of each module. Must be between 0 and 0.5.

size

Number. Default: 128. The size of the QR code, in pixels.

Value

An HTML tag for the component.

Shiny Bindings

None.


shiny.webawesome documentation built on April 22, 2026, 1:09 a.m.