Canopy Primary Message — Best Practices
SkillCommunicationBest practices for the Canopy Primary Message component. Trigger when adding full-page confirmation messages, empty states, error pages, or success completion screens 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 Primary Message — 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/primary-message/SKILL.md and read by ahel’s review.
This skill provides usage guidance, dos and don'ts, and input reference for the Canopy lg-primary-message component from @legal-and-general/canopy.
Apply this skill whenever you use LgPrimaryMessageComponent or lg-primary-message.
Import
import {
LgPrimaryMessageComponent,
LgPrimaryMessageTitleComponent,
LgPrimaryMessageDescriptionComponent,
} from '@legal-and-general/canopy';
Basic Usage
<lg-primary-message>
<lg-pictogram name="calendar"></lg-pictogram>
<lg-primary-message-title>All done!</lg-primary-message-title>
<lg-primary-message-description>
Your application has been submitted successfully.
</lg-primary-message-description>
<lg-primary-message-description>
<button lg-button priority="primary" lgMarginTop="4" type="button">
Continue
</button>
</lg-primary-message-description>
</lg-primary-message>
When to Use
| State | Example |
|---|---|
| Empty | "You have no transactions" |
| Error | "Cannot find the page you are looking for" |
| Information | "New feature intro guide" |
| Success | "All done! Your application is complete" |
Inputs
| Input | Type | Default | Description |
|---|---|---|---|
hasRole | boolean | true | When false, removes role="alert" from the component. |
Dos and Don'ts
Do
- Do use when there is no other functionality or content on the page.
- Do use when space is not limited.
- Do choose an appropriate pictogram from the pictogram catalogue to reinforce the message.
- Do tint the pictogram to match the status — for example
--colour-green-400for a success state. - Do add a button as a call to action at the end of a journey to guide users to the next step.
Don't
- Don't use on a page that contains other content (e.g. a form) — it should be the only content in its container.
- Don't use for form validation — use inline messages (
lg-alert) instead.
Design Constraints
- A primary message must be the only content in its container.
- Multiple
lg-primary-message-descriptioncomponents are allowed for additional paragraphs or actions.
Signals
- GitHub stars
- 23
- Forks
- 46
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
canopy-primary-message- Source
- github.com/legal-and-general/canopy