Canopy Heading — Best Practices

SkillDev tools

Best 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.

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

LgHeadingComponent should 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

InputTypeDefaultRequiredDescription
levelnumberundefinedYesThe semantic heading level (1–6).

Design Constraints

  • Always pass a level value that maintains a logical document outline.
  • Consumers of components that wrap lg-heading must supply a headingLevel input 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