# Label wrapping an input
calcite_label(
label = "Username",
calcite_input_text(
id = "username",
placeholder = "Enter username"
)
)
# Label with inline layout
calcite_label(
label = "Subscribe",
layout = "inline",
calcite_checkbox(id = "subscribe")
)
# Label with external component (using target_id)
htmltools::tagList(
calcite_label(
label = "Password",
target_id = "password"
),
calcite_input_text(id = "password", placeholder = "Enter password")
)
Run the code above in your browser using DataLab