checkbox-usage

Guide checkbox usage with Checkbox and FormCheckbox from @techsio/ui-kit.

2|Updated Dec 2, 2024
One-click install
npx skills add https://github.com/TechsioCZ/new-engine --skill checkbox-usage
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: checkbox-usage
Source: https://github.com/TechsioCZ/new-engine/tree/main/libs/ui/skills/checkbox-usage
Command: npx skills add https://github.com/TechsioCZ/new-engine --skill checkbox-usage

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Checkbox usage guides developers to implement accessible, consistent checkbox controls using the bare Checkbox atom and the labeled FormCheckbox molecule.

Core Features & Use Cases

  • Use Checkbox for the bare control.
  • Use FormCheckbox when the UI includes a label, helper text, validation text, or a form-field layout.
  • Promote using the FormCheckbox to ensure proper labeling and layout in forms.

Quick Start

Instantiate a Checkbox or FormCheckbox in your UI to create accessible labeled form controls.

Frequently Asked Questions about checkbox-usage

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create an accessible checkbox with a label and validation messages in my forms?

Use the FormCheckbox molecule to implement accessible checkboxes with labels, helper text, and validation messages in form rows. It provides proper layout handling and labeling out of the box.

When should I use a bare Checkbox versus a FormCheckbox in my UI?

Use the bare Checkbox atom for the control only. Use FormCheckbox when the UI includes a label, helper text, validation text, or a form-field layout to ensure proper accessibility.

Does the @techsio/ui-kit checkbox support indeterminate and invalid states?

Yes, the checkbox components support indeterminate and invalid states, allowing you to handle partial selection UIs and visually indicate form validation errors within your application forms.

What is the best way to ensure consistent checkbox controls across my application?

The best way to ensure consistent checkbox controls is to reuse the labeled FormCheckbox molecule across your app, enforcing proper labeling and layout handling rather than building custom checkbox implementations.

Can I add helper text to a checkbox input without breaking the form layout?

Yes, use the FormCheckbox molecule to add helper text. It is designed to manage labels, helper text, and validation messages while maintaining proper form-field layout across components.