canopy-forms-switch
OfficialBest practices for Canopy switch controls.
AuthorLegal-and-General
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Canopy switch controls used in Angular forms can be tricky to implement with consistent behavior, accessibility, and predictable state changes. This skill provides a concise guide to using the lg-switch (LgToggleComponent) as a form control, ensuring immediate responses to user actions and consistent UX across Canopy projects.
Core Features & Use Cases
- Clear guidance on when to apply lg-switch toggles for immediate settings in forms.
- Accessibility and labeling recommendations, including proper focus management and ARIA attributes.
- Practical usage patterns showing LgToggleComponent integrated in Angular form controls with proper groupings (fieldset/legend) when multiple switches are present.
Quick Start
Implement these practices to wire lg-switch toggles into an Angular form for immediate, accessible on/off interactions.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: canopy-forms-switch Download link: https://github.com/Legal-and-General/canopy/archive/main.zip#canopy-forms-switch Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.