# NOT RUN {
div(
button(
type = "button",
class = "btn btn-primary",
custom_attr = list(
"data-bs-toggle" = "modal",
"data-bs-target" = "#modal1"
),
"Launch Modal"
),
bs_modal(
id = "modal1",
body = p("Here is the modal.")
)
)
# }
Run the code above in your browser using DataLab