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