← Back to Components

Checkbox

Stateful toggle selector for standalone options or boolean flags.

Interactive Playground

R Code

API Reference

block_checkbox()

A customized check selection button for boolean switches.

ArgumentTypeDefaultDescription
input_idcharacterrequiredInput identifier returned as input$<id>.
labelcharacterrequiredSupporting text placed next to check control.
valuelogicalFALSEInitial active checkbox state.
disabledlogicalFALSELock control input.
stylecharacterNULLCustom container styles.
classcharacterNULLCustom style stylesheet classes.

update_block_checkbox()

Modifies checking state, labels, or interactiveness on the fly.

ArgumentTypeDefaultDescription
sessionShinySessionrequiredShiny web session object context.
input_idcharacterrequiredCheckbox input ID.
labelcharacterNULLUpdate label copy text.
checkedlogicalNULLSet active checked state.
disabledlogicalNULLLock checkbox interaction.