Skip to contents

The checbox() and checkbox_group() allows the user to set a binary value, such as true/false or yes/no for an item. Checkboxes they can be either used on their own or within checkbox_group().

See the official documention for checkbox, for all the correct props.

Examples

checkbox(text = "Checkbox 1", id = "chk1")
checkbox_group(
  "chkgroup",
  checkbox(value = "chk2", text = "Checkbox 2", checked = TRUE),
  checkbox(value = "chk3", text = "Checkbox 3")
)
checkbox(text = "Success", id = "chk1", `value-state` = "Success")
checkbox(text = "Disabled", id = "chk1", `value-state` = "Information", disabled = NA)