Canopy Orientation — Best Practices
SkillDev toolsBest practices for the Canopy Orientation directive. Trigger when using lgOrientation or LgOrientationDirective to create responsive vertical/horizontal layouts 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 Orientation — 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/orientation/SKILL.md and read by ahel’s review.
This skill provides usage guidance for the Canopy lgOrientation directive from @legal-and-general/canopy.
Apply this skill when arranging child elements in responsive vertical or horizontal layouts.
Import
import { LgOrientationDirective } from '@legal-and-general/canopy';
Basic Usage
Pass a responsive orientation object — keys are mobile-first breakpoints, values are orientation modes:
<lg-card [lgOrientation]="{ md: 'horizontal', lg: 'vertical' }"></lg-card>
Orientation Options
| Value | Description |
|---|---|
vertical | Children stacked vertically, same order. |
horizontal | Children arranged horizontally, same order. |
reverse-vertical | Children stacked vertically, reversed order. |
reverse-horizontal | Children arranged horizontally, reversed order. |
Responsive Object
{ sm: 'vertical', md: 'horizontal' }
Each key is a mobile-first breakpoint (sm, md, lg, xl, xxl). At each breakpoint and above, the specified orientation is applied.
Inputs
| Input | Type | Default | Required | Description |
|---|---|---|---|---|
lgOrientation | OrientationResponsive | null | No | Responsive orientation object mapping breakpoints to orientation values. |
Examples
Vertical on small, horizontal on medium and above
<lg-card [lgOrientation]="{ sm: 'vertical', md: 'horizontal' }">
<lg-card-hero-img src="image.jpg"></lg-card-hero-img>
<lg-card-content>
<h3>Content</h3>
</lg-card-content>
</lg-card>
Multi-breakpoint configuration
<lg-card [lgOrientation]="{ sm: 'vertical', md: 'reverse-horizontal', lg: 'vertical' }">
...
</lg-card>
Signals
- GitHub stars
- 23
- Forks
- 46
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
canopy-orientation- Source
- github.com/legal-and-general/canopy