← 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.
| Argument | Type | Default | Description |
|---|---|---|---|
| input_id | character | required | Input identifier returned as input$<id>. |
| label | character | required | Supporting text placed next to check control. |
| value | logical | FALSE | Initial active checkbox state. |
| disabled | logical | FALSE | Lock control input. |
| style | character | NULL | Custom container styles. |
| class | character | NULL | Custom style stylesheet classes. |
update_block_checkbox()
Modifies checking state, labels, or interactiveness on the fly.
| Argument | Type | Default | Description |
|---|---|---|---|
| session | ShinySession | required | Shiny web session object context. |
| input_id | character | required | Checkbox input ID. |
| label | character | NULL | Update label copy text. |
| checked | logical | NULL | Set active checked state. |
| disabled | logical | NULL | Lock checkbox interaction. |