input_text: Add a text input to a website

View source: R/input_text.R

input_textR Documentation

Add a text input to a website

Description

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

## Not run: 
input_text("Enter Text:", "entered_text")

## End(Not run)

uva-bi-sdad/community documentation built on Oct. 12, 2023, 1:18 p.m.