Skip to content
Agentmart
Submit a tool

canopy-alert

Best practices for the Canopy Inline Message (Alert) component.

Skill by Legal-and-General

IndexedMIT★ 24
Write a review

Chalk Labs

Need help deploying canopy-alert?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/legal-and-general-canopy-alert

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Best practices for the Canopy Inline Message (Alert) component. Trigger when adding inline messages, status alerts, info/warning/error/success notifications, or feedback messages in an Angular project using Canopy.

Use cases: frontend

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/canopy-alert

What's inside

Skill name
canopy-alert
Description
Best practices for the Canopy Inline Message (Alert) component. Trigger when adding inline messages, status alerts, info/warning/error/success notifications, or feedback messages in an Angular project using Canopy.
License
MIT
Metadata
source: https://github.com/Legal-and-General/canopy/tree/master/projects/canopy/src/lib/alert/docs/guide.mdx
Instructions
92 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • name: "canopy-alert" does not match folder "alert"

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Canopy Inline Message (Alert) — Best Practices

This skill provides usage guidance, dos and don'ts, and input reference for the Canopy `lg-alert` component (`LgAlertComponent`) from `@legal-and-general/canopy`.

Apply this skill whenever you use `LgAlertComponent` or `lg-alert`.

---

## Import

```ts
import { LgAlertComponent } from '@legal-and-general/canopy';
```

---

## Basic Usage

```html
<lg-alert status="info" [showIcon]="true">
  This product comes with a free umbrella.
  Here is some <a href="#">link text</a>.
</lg-alert>
```

---

## Statuses

| Status | When to use | Example |
|--------|-------------|----------|
| `generic` | Basic message; no semantic role assigned. Icon is customisable. | `<lg-alert status="generic">Check out our new feature</lg-alert>` |
| `info` | Calmly highlight information; no action required. | This product comes with a free umbrella. |
| `success` | Confirm a completed action; no further user action needed. | Your umbrella has been dispatched successfully. |
| `warning` | Elevated alert; interrupted service or something that may affect the user's holding. | We can't get details of your umbrella right now. |
| `error` | Error that stops the user completing their journey; include steps to resolve. | You must confirm the terms and conditions before proceeding. |

The `alert` ARIA role is automatically applied for `warning`, `error`, and `success` statuses, sending an accessible event to assistive technologies.

---

## Customising Icons

For `generic` and `info` statuses, you can provide a custom icon via the `icon` input. All other statuses use fixed icons that cannot be overridden.

```html
<lg-alert status="generic" [icon]="'help'">
  This is helpful information.
</lg-alert>
```

---

## Inputs

| Input | Type | Default | Description |
|-------|------|---------|-------------|
| `status` | `'generic' \| 'info' \| 'success' \| 'warning' \| 'error'` | `'generic'` | Applies colour treatment and ARIA role. |
| `statusTheme` | `'neutral' \| 'bold'` | `'neutral'` | The theme variant applied alongside the status. |
| `showIcon` | `boolean` | `true` | Whether to show the status icon. Applies to all statuses. |
| `icon` | `IconName \| null` | `null` | Custom icon for `generic` or `info` statuses. Ignored for other statuses. |
| `role` | `string` | auto | Override the ARIA role, or pass `'none'` to suppress it. |

---

## Dos and Don'ts

### Do

1. **Do** display inline messages in a timely manner so users can resolve issues immediately.
2. **Do** keep the message succinct.
3. **Do** include a link to take an action or get more detailed information when appropriate.
4. **Do** place the inline message close to the element it relates to so users understand the context.

### Don't

1. **Don't** use inline messages when space is not an issue — consider using Notice with Pictogram instead.
2. **Don't** overload the page with multiple inline messages simultaneously.
3. **Don't** use error status without providing clear steps to resolve the issue.
4. **Don't** use inline messages to hide important information; place them where users will see them in context.

---

## Accessibility

- `warning`, `error`, and `success` statuses automatically add `role="alert"`, which triggers an accessible alert event in assistive technologies.
- `info` and `generic` statuses do not receive an ARIA role by default.
- To suppress the role on any status, pass `[role]="'none'`.
- Always include meaningful, actionable text in error messages — explain the problem and how to fix it.
- Error messages should include a link to detailed help or next steps when appropriate.

From Legal-and-General/canopy, MIT.

More from Legal-and-General/canopy

Signals

Stars
24
Forks
46
Open issues
11
Last commit (this folder)
Sep 22, 2026 (1 month ago)
Last release
Oct 20, 2026 (13 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Legal-and-General

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get canopy-alert running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying canopy-alert?

CallGet help
Cite this page

canopy-alert skill. Agent Mart. https://agentmart.dev/skills/legal-and-general-canopy-alert (last updated 2026-10-24)