Learn more at https://getbootstrap.com/docs/5.1/forms/overview/.
bs_textarea(
id,
value = NULL,
label = NULL,
placeholder = NULL,
text = NULL,
inline = FALSE,
required = FALSE,
div_attr = NULL,
textarea_attr = c(class = "form-control"),
label_attr = c(class = "form-label"),
text_attr = c(class = "form-text")
)
A string of HTML.
A string, the id/name for the textarea, passed to the id and name attributes of the <textarea> tag.
A string, the value of the textarea, passed to the value attribute of the <textarea> tag.
A string, the label to use for the textarea, passed to html5::label.
A string, passed to the placeholder attribute of the <textarea> tag.
A string, text or HTML to display with the textarea and label tags.
TRUE/FALSE, if TRUE, adds a div and classes to display the label and textarea and text in the same line.
TRUE/FALSE, if TRUE, will add the required attribute to the textarea tag.
A named list or named vector, names are attribute names and values are attribute values. Passed to the attr parameter of html5::div, wrapping the textarea, label, and text.
A named list or named vector, names are attribute names and values are attribute values. Passed to the attr parameter of html5::textarea.
A named list or named vector, names are attribute names and values are attribute values. Passed to the attr parameter of html5::label.
A named list or named vector, names are attribute names and values are attribute values. Passed to the attr parameter of html5::div, which will display the text parameter.
bs_textarea(
id = "example1",
label = "Example Text Area Input"
)
Run the code above in your browser using DataLab