Skip to contents

Adds an direct text input element to a website.

Usage

input_text(label, id = label, ..., default = NULL, note = NULL,
  multiline = FALSE, class = NULL, floating_label = TRUE)

Arguments

label

Label of the input for the user.

id

Unique ID of the element to be created.

...

Other attributes to add to the input.

default

Default value of the input, which will appear as a placeholder.

note

Text to display as a tooltip for the input or textarea.

multiline

Logical; if TRUE, create a textarea element, instead of an input element to accept multiple lines of text.

class

Class names to add to the input's list.

floating_label

Logical; if FALSE, labels are separate from their input elements.

Value

A character vector of the contents to be added.

Examples

if (FALSE) {
input_text("Enter Text:", "entered_text")
}