Canopy Hide At — Best Practices
This skill provides usage guidance for the Canopy lgHideAt directive from @legal-and-general/canopy.
Apply this skill when you need to hide an element at certain breakpoints.
See also: the
show-atskill for showing elements at breakpoints.
Import
import { LgHideAtDirective } from '@legal-and-general/canopy';
Basic Usage
<!-- Hide at the lg breakpoint and above -->
<p lgHideAt="lg">Hidden on large screens and above</p>
Inputs
Available breakpoints: sm, md, lg, xl, xxl.
| Input | Type | Default | Required | Description |
|-------|------|---------|----------|-------------|
| lgHideAt | Breakpoints | null | No | The breakpoint at which the element is hidden. |