liveBook · Manning

Check box

A checkbox is an interactive form control representing an independently selectable binary option that can be checked or cleared.

How 4 Manning books explain it

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
Lets users toggle optional rounding or mark tasks done in Streamlit apps.
How deep it goes
Works through conditional display, repeated checkboxes, task-status updates, and rerun pitfalls rather than widget internals.
Examples
Uses a unit converter’s optional decimal-places input and a to-do list with one checkbox per task.
What you can do after
Build it from scratch: add Streamlit checkboxes that reveal an optional input or update a task’s completion status.

Read how Build Python Web Apps with Streamlit explains check box →

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.

Read how React Quickly, Second Edition explains check box →

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.

Read how Tiny CSS Projects explains check box →

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.

Read how Build a Website with ChatGPT explains check box →

Related concepts

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.