Show at

From Legal-and-General/canopy · View interactive version

Show at is an AI agent skill from the GitHub repository Legal-and-General/canopy. Best practices for the Canopy Show At directive. Trigger when using lgShowAt or LgShowAtDirective to show elements at specific breakpoints in an Angular project using Canopy.

How to use this skill

Skill file

Canopy Show At — Best Practices

This skill provides usage guidance for the Canopy lgShowAt directive from @legal-and-general/canopy.

Apply this skill when you need to show an element only at certain breakpoints.

See also: the hide-at skill for hiding elements at breakpoints.


Import

import { LgShowAtDirective } from '@legal-and-general/canopy';

Basic Usage

<!-- Show only at the md breakpoint and above -->
<p lgShowAt="md">Visible on medium screens and above</p>

Inputs

Available breakpoints: sm, md, lg, xl, xxl.

| Input | Type | Default | Required | Description |

|-------|------|---------|----------|-------------|

| lgShowAt | Breakpoints | null | No | The breakpoint at which the element becomes visible. Uses mobile-first (min-width) media queries. |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.