implementation
Implement in your agent
# Implement Checkbox in your agent ## Objective Implement Checkbox for this verified behavior: An independent binary choice that can be checked, unchecked, or sometimes indeterminate. ## Prerequisites - Inspect the repository, design system, and existing tests first. - Preserve unrelated changes and keep the file scope bounded. - Confirm that Checkbox matches the need before writing code. ## Required behavior - Activation changes the binary state; when that value is persisted is a separate product decision. - A parent choice can expose an indeterminate state when only some child items are selected. ## States to cover - Checkbox unchecked — Checkbox unchecked - Checkbox checked — Checkbox checked ## Accessibility - The primary control or named region for Checkbox has a stable accessible name from visible text or an explicit programmatic label; placeholder text and tooltips are not names. - Each native checkbox is a visible focus stop and its label expands the pointer target. - Not applicable: the checkbox persists until the user toggles it or the form resets. - Tab focuses each checkbox - Space toggles the focused checkbox ## Non-goals - Exactly one option must be selected - The value is best expressed as an on or off setting ## Acceptance criteria - Every checkbox has a visible associated label - Independent options can be toggled separately - The mixed state is programmatic as well as visual - Space and pointer produce the same state
sha256:49b0ae2939b2e25dd11366d934fa5e4f2a48ac077a649b0087c09f342ebd541b