Canopy Orientation — Best Practices

SkillDev tools

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

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

ValueDescription
verticalChildren stacked vertically, same order.
horizontalChildren arranged horizontally, same order.
reverse-verticalChildren stacked vertically, reversed order.
reverse-horizontalChildren 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

InputTypeDefaultRequiredDescription
lgOrientationOrientationResponsivenullNoResponsive 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