Skip to contents

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

Usage

wa_option(
  ...,
  id = NULL,
  class = NULL,
  style = NULL,
  value = NULL,
  disabled = NULL,
  label = NULL,
  dir = NULL,
  lang = NULL,
  selected = NULL,
  end = NULL,
  start = 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 option's value. When selected, the containing form control will receive this value. The value must be unique from other options in the same group. Values may not contain spaces, as spaces are used as delimiters when listing multiple values.

disabled

Boolean. Default: FALSE. Draws the option in a disabled state, preventing selection.

label

String. The option’s plain text label. Usually automatically generated, but can be useful to provide manually for cases involving complex content.

dir

String. Optional Web Awesome attribute.

lang

String. Optional Web Awesome attribute.

selected

Boolean. Default: FALSE. Selects an option initially. This wrapper argument sets the HTML selected attribute, which maps to the component's defaultSelected field/property.

end

An element, such as <wa-icon>, placed after the label.

start

An element, such as <wa-icon>, placed before the label.

Value

An HTML tag for the component.

Shiny Bindings

None.