checkbox: Checkbox

View source: R/widget-controls.R

checkboxR Documentation

Checkbox

Description

A labelled toggle. Space, Enter or a click toggles it and sends "checkbox.changed" (event$data$value).

Usage

checkbox(
  label = "",
  value = FALSE,
  id = NULL,
  classes = NULL,
  style = NULL,
  disabled = FALSE
)

Arguments

label

Label text.

value

Initial state.

id

Optional identifier.

classes

Optional classes.

style

A style().

disabled

Disabled checkboxes cannot be toggled.

Value

A Checkbox widget with a reactive value.

Examples

checkbox("Enable logs", value = TRUE, id = "logs")

termr documentation built on Oct. 21, 2026, 5:13 p.m.