Canopy Heading — Best Practices
SkillDev toolsBest practices for the Canopy Heading component. Trigger when setting a dynamic heading level inside a custom component in an Angular project using Canopy.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Canopy Heading — Best Practices skill
What this skill tells your AI
The instructions your AI receives, as published by legal-and-general/canopy in skills/best-practice/heading/SKILL.md and read by ahel’s review.
This skill provides usage guidance for the Canopy LgHeadingComponent from @legal-and-general/canopy.
Apply this skill whenever you need to render a heading at a programmatically-determined level.
Import
import { LgHeadingComponent } from '@legal-and-general/canopy';
Basic Usage
LgHeadingComponentshould only be used inside other components — for example, inside an accordion panel heading or a card title — where the heading level must be configurable by the consumer. Do not use it directly in application templates for static headings.
<!-- Inside a wrapper component that accepts a headingLevel input -->
<lg-heading [level]="headingLevel">{{ title }}</lg-heading>
Inputs
| Input | Type | Default | Required | Description |
|---|---|---|---|---|
level | number | undefined | Yes | The semantic heading level (1–6). |
Design Constraints
- Always pass a
levelvalue that maintains a logical document outline. - Consumers of components that wrap
lg-headingmust supply aheadingLevelinput that reflects the correct hierarchy for their page context.
Signals
- GitHub stars
- 23
- Forks
- 46
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
canopy-heading- Source
- github.com/legal-and-general/canopy