Checkbox
A checkbox is an interactive control that can be selected or cleared to represent a binary choice or state.
Build Python Web Apps with Streamlit
st.checkbox is a Streamlit input API element that renders a Boolean checkbox with a label.
- How it is used
- Uses checkboxes to conditionally reveal controls and represent task completion in Streamlit apps.
- How deep it goes
- Explains labels, Boolean values, repeated widgets, task wiring, and rerun pitfalls through incremental examples.
- Examples
- Uses an optional rounding control and a to-do list with task checkboxes and strikethrough labels.
- What you can do after
- Apply it via Streamlit to render Boolean controls, branch on their values, and recognize rerun-related task display problems.
Read how Build Python Web Apps with Streamlit explains checkbox →
React Quickly, Second Edition
A checkbox is a form control that represents an independently selectable true-or-false option.
- How it is used
- Represents Boolean form choices such as task urgency and individual step completion.
- How deep it goes
- Shows a controlled check box with state initialization, `checked`, and an `onChange` handler; leaves the multi-step implementation as homework.
- Examples
- Uses an urgent-task form and an exercise that adds completion check boxes to task steps.
- What you can do after
- Build it from scratch as a controlled React check box, then apply the pattern to completable task steps.
Tiny CSS Projects
A checkbox is a form control that can be independently selected or cleared to represent a binary or multiple-choice setting.
- How it is used
- Uses a newsletter check box to demonstrate styling a choice within a contact form.
- How deep it goes
- Works through accent coloring and custom unselected visuals, but does not show a custom selected-state design.
- Examples
- Shows a newsletter choice and CSS listings for accent-colored, reset, and styled controls.
- What you can do after
- Operate/configure it with CSS to recolor a native check box or size and shape its unselected appearance.
Build a Website with ChatGPT
A checkbox is a form control representing an independently selectable yes-or-no or on-or-off value.
- How it is used
- Collects one independent yes-or-no, accept-or-reject, or on-or-off response in an interactive form.
- How deep it goes
- Explains visible checked and unchecked states and initial-state customization, but does not detail generated code internals.
- Examples
- Uses notification, newsletter-subscription, and event-sign-up choices as concrete checkbox examples.
- What you can do after
- Build it from scratch by specifying a checkbox label, response meaning, and initial checked state in a generated form.
Also covered in
- BDD in Action, Second Edition
- React Hooks in Action: With Suspense and Concurrent Mode
- React in Depth
What to know first
- buttonA button is an interactive user-interface control that a user can activate to initiate an action or select an option.
- stateState is information describing the condition or configuration of a system or computation at a particular time that may influence its behavior or subsequent transitions.
- HTMLHTML is the standard markup language for structuring content and elements in documents on the web.
- HTML elementAn HTML element is a structural or semantic unit of an HTML document, defined by markup and represented in the document tree.
Related concepts
- web formpart of · A web form is a web-page interface that groups controls for collecting user input and submitting it for processing.
- accent-colorconfigured by · The CSS accent-color property specifies the accent color used by supported user-interface controls and form elements.
- rerunproduces · A Streamlit development setting that automatically reruns an app when its source code changes.
- checked propertyuses · The checked property is a form-control property that reports whether a checkbox input is selected.
- checklistpart of · A structured list of tasks, questions, or criteria used to guide an activity or systematically verify that relevant requirements have been addressed.
Questions about checkbox
What is checkbox?
A checkbox is an interactive control that can be selected or cleared to represent a binary choice or state.
Which Manning books explain checkbox?
Build Python Web Apps with Streamlit, React Quickly, Second Edition, Tiny CSS Projects and Build a Website with ChatGPT.
What should I know before learning checkbox?
Manning books that teach checkbox usually introduce button, state, HTML and HTML element first.
What is checkbox a kind of?
Checkbox is a kind of conditional element. A conditional element is a user-interface component whose behavior or resulting interaction depends on a user selection or action.
What is checkbox part of?
Checkbox is part of web form. A web form is a web-page interface that groups controls for collecting user input and submitting it for processing.
What is checkbox also called?
Checkbox is also called check box.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.



