express.ui.input_checkbox
id, label, value=False, *, width=None) express.ui.input_checkbox(
Create a checkbox that can be used to specify logical values.
Parameters
Returns
: Tag
-
A UI element.
Notes
Server value
True
if checked, False
otherwise.
See Also
Examples
#| standalone: true
#| components: [editor, viewer]
#| layout: vertical
#| viewerHeight: 400
## file: app.py
from shiny.express import input, render, ui
ui.input_checkbox("somevalue", "Some value", False)
@render.ui
def value():
return input.somevalue()