Separator

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

Separator is an AI agent skill from the GitHub repository Legal-and-General/canopy. Best practices for the Canopy Separator component. Trigger when visually dividing content sections or grouping items in an Angular project using Canopy.

How to use this skill

Skill file

Canopy Separator — Best Practices

This skill provides usage guidance, dos and don'ts, and input reference for the Canopy lg-separator component from @legal-and-general/canopy.

Apply this skill whenever you use LgSeparatorComponent or lg-separator.


Import

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

Basic Usage

<lg-separator></lg-separator>

With a dotted style:

<lg-separator variant="dotted"></lg-separator>

With a semantic separator role for accessibility:

<lg-separator [hasRole]="true"></lg-separator>

Inputs

| Input | Type | Default | Description |

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

| variant | 'solid' \| 'dotted' | 'solid' | Visual style of the separator. |

| hasRole | boolean | false | When true, adds role="separator" to the element. |


Dos and Don'ts

Do

  1. Do use a separator to group related items, such as within a list.
  2. Do use a separator to divide content into clear, manageable sections.

Design Constraints

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.