thedaviddias/ux-patterns-for-developers/checkbox
Claude Code and agent skill by thedaviddias/ux-patterns-for-developers
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Use when implementing enable single or multiple selections.
Install
npx vskill@latest install thedaviddias/ux-patterns-for-developers/checkboxSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as thedaviddias/ux-patterns-for-developers/checkbox.
Checkbox
Enable single or multiple selections
What it solves
A checkbox is a form control that allows users to select one or more options from a set of choices. Unlike radio buttons, checkboxes enable multiple selections and can be used independently or as part of a group. Checkboxes are essential for forms, settings panels, and any interface where users need to make multiple selections or toggle individual options on and off.
When to use
Use checkboxes when you need users to make multiple selections from a set of options. Common scenarios include:
- Form preferences – Newsletter subscriptions, communication preferences, terms acceptance
- Filter selections – Product categories, price ranges, features in e-commerce
- Settings toggles – Privacy options, notification preferences, feature enablement
- Multi-select lists – Adding items to cart, selecting files for upload, choosing recipients
- Agreement checkboxes – Terms of service, privacy policy, age verification
- Feature selection – Choosing add-ons, selecting services, picking options
When to avoid
- For single selections – Use radio buttons instead
- For binary on/off states – Use toggle switches for settings
- When space is limited – Consider dropdowns for many options
- For immediate actions – Use buttons for instant responses
- When options are mutually exclusive – Radio buttons are more appropriate
Implementation workflow
- Confirm the pattern matches the problem and constraints before copying the example.
- Start from the anatomy and examples in
references/pattern.md, then choose the smallest viable variation. - Apply accessibility, performance, and interaction guardrails before layering visual polish.
- Use the testing guidance to verify behavior across keyboard, screen reader, responsive, and failure scenarios.
Accessibility guardrails
ARIA Attributes
Required ARIA attributes:
aria-describedby: Link to additional help textaria-required: For required checkbox fieldsaria-invalid: When validation failsaria-expanded: For collapsible checkbox groups
Keyboard Interaction Pattern
The following table outlines the standard keyboard interactions for checkbox components.
| Key | Action |
|---|
Performance guardrails
Performance Metrics
Target Metrics:
- Render Time: < 16ms for checkbox state changes
- Bundle Size: < 2KB for basic checkbox implementation
- Memory Usage: Minimal impact for standard checkbox groups
- Accessibility: 100% keyboard navigable, screen reader compatible
Optimization Strategies:
- Event Delegation: Use single event listener for checkbox groups
- Lazy Rendering: Only render visible checkboxes in long lists
- Debounced Updates: Prevent excessive re-renders during rapid selection
Common mistakes
Using Checkboxes for Single Selection
The Problem: Using checkboxes when only one option should be selectable confuses users about the interaction model.
How to Fix It? Use radio buttons for mutually exclusive options, checkboxes only for multiple selections.
Poor Label Association
The Problem: Checkboxes without proper labels are inaccessible and confusing for users.
How to Fix It? Always associate labels using for attribute or wrap the input in a label element.
Inconsistent Grouping
The Problem: Related checkboxes scattered without visual grouping makes the form hard to understand.
How to Fix It? Group related options using fieldsets, containers, or visual spacing to show relationships.
Related patterns
- https://uxpatterns.dev/patterns/forms/button
- https://uxpatterns.dev/patterns/forms/form-validation
- https://uxpatterns.dev/patterns/forms/multi-select-input
- https://uxpatterns.dev/patterns/forms/radio
- https://uxpatterns.dev/patterns/forms/selection-input
- https://uxpatterns.dev/patterns/forms/toggle
- https://uxpatterns.dev/patterns/navigation/pagination
For full implementation detail, examples, and testing notes, see references/pattern.md.
Pattern page: https://uxpatterns.dev/patterns/forms/checkbox
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/checkbox/SKILL.md
Popularity
- Repository stars
- 227
- Repository forks
- 18
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 27 Jul 2026, 4 months ago.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/thedaviddias/ux-patterns-for-developers/checkbox)