Canopy Primary Message — Best Practices

SkillCommunication

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

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

StateExample
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

InputTypeDefaultDescription
hasRolebooleantrueWhen false, removes role="alert" from the component.

Dos and Don'ts

Do

  1. Do use when there is no other functionality or content on the page.
  2. Do use when space is not limited.
  3. Do choose an appropriate pictogram from the pictogram catalogue to reinforce the message.
  4. Do tint the pictogram to match the status — for example --colour-green-400 for a success state.
  5. Do add a button as a call to action at the end of a journey to guide users to the next step.

Don't

  1. Don't use on a page that contains other content (e.g. a form) — it should be the only content in its container.
  2. 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-description components 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
Canopy Primary Message — Best Practices: Skill · ahel