Label

Description

Create a label for a form control.

Usage

bc_label(...)

Arguments

Argument Description
... Tag attributes and content. Set `for` to the ID of the control the label names.

Value

An htmltools tag.

Details

bc_checkbox() and bc_switch() already include a label.

See Also

bc_checkbox(), bc_switch(), bc_field()

Examples

bc_label("Your email address", `for` = "email")

bc_label(
  htmltools::tags$input(type = "checkbox", class = "input"),
  "Accept terms and conditions"
)