powered by
Create a HTML input tag configured with Bootstrap classes
bs_input( type = "text", id, value = NULL, label = NULL, placeholder = NULL, div_class = NULL, input_class = "form-control", label_class = "form-label", text = NULL, text_class = "form-text", input_args = list(), inline = FALSE )
A string, the type of input to create, passed to the type param of html5::input().
A string, the id/name for the input, passed to the id and name params of html5::input().
A string, the value of the input, passed to the value param of html5::input().
A string, the label to use for the input, passed to html5::label().
A string, passed to the placeholder param of html5::input().
A string, the class of the div tag surrounding the the label and input tags.
A string, the class of the input tag.
A string, the class of the label tag.
A string, text or HTML to display with the input and label tags.
A string, the class of the text or HTML to display with the input and label tags.
A named list, names should correspond to a parameter of the html5::input() function and values will be passed to that parameter.
TRUE/FALSE, if TRUE, adds a div and classes to display the label and input and text in the same line.
A string of HTML.
# NOT RUN { bs_input( id = "example1", label = "Example Text Input", text = "This is an example input created with the bs_input function." ) # }
Run the code above in your browser using DataLab