Skip to content
Agentmart
Submit a tool

angular-cdk

ALWAYS use when working with Angular CDK (Component Dev Kit), building custom accessible components, or using drag-drop, overlay, portal, or virtual scrolling.

Skill by oguzhan18

IndexedMIT★ 7
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/oguzhan18-angular-cdk

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

ALWAYS use when working with Angular CDK (Component Dev Kit), building custom accessible components, or using drag-drop, overlay, portal, or virtual scrolling.

Use cases: frontend

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/angular-cdk

What's inside

Skill name
angular-cdk
Description
ALWAYS use when working with Angular CDK (Component Dev Kit), building custom accessible components, or using drag-drop, overlay, portal, or virtual scrolling.
License
MIT
Metadata
version: 21.0.3 · generated_at: 2026-02-19 · generated_by: oguzhancart
Instructions
151 lines in SKILL.md · view on GitHub

Files (5)

  • SKILL.md
  • _INDEX.md · references/discussions/
  • _INDEX.md · references/docs/
  • _INDEX.md · references/issues/
  • _INDEX.md · references/releases/

SKILL.md (first lines)

# @angular/cdk (Component Dev Kit)

**Version:** 21.0.3 (Feb 2026)
**Tags:** Accessibility, Drag & Drop, Overlay, Virtual Scroll, Portal

**References:** [Docs](https://material.angular.dev/cdk) — official CDK documentation • [GitHub](https://github.com/angular/components) • [API](https://material.angular.io/cdk/categories)

## API Changes

This section documents recent version-specific API changes.

- NEW: CDK overlays now use browser's built-in popovers for improved accessibility [source](https://blog.angular.dev/announcing-angular-v21)

- NEW: Angular 19 signal-based APIs — Modern signal integration for CDK components

- NEW: Improved focus management — Better `cdkTrapFocus` and `cdkFocusRegion` support

- NEW: Drag & Drop improvements — Enhanced item copying between lists

- DEPRECATED: Legacy overlay strategies — Prefer scroll strategy configuration over deprecated approaches

## Best Practices

- Use CDK for custom UI components — Build your own components without Material styling

```ts
import { OverlayModule } from '@angular/cdk/overlay';
import { PortalModule } from '@angular/cdk/portal';

@Component({
  standalone: true,
  imports: [OverlayModule, PortalModule],
  // ...
})
export class CustomDropdownComponent {}
```

- Use Overlay for floating panels — Tooltips, dropdowns, modals

```ts
import { OverlayRef, Overlay } from '@angular/cdk/overlay';

export class TooltipService {
  private overlayRef: OverlayRef;

  constructor(private overlay: Overlay) {
    this.overlayRef = this.overlay.create({
      hasBackdrop: true,
      positionStrategy: this.overlay.position()
        .connectedTo(origin, { originX: 'center', originY: 'bottom' })
        .withOffsetX(0)
        .withOffsetY(8)
    });
  }
}
```

- Use Drag & Drop for sortable lists

```ts
import { CdkDragDrop, moveItemInArray, transferArrayItem } from '@angular/cdk/drag-drop';

drop(event: CdkDragDrop<string[]>) {
  if (event.previousContainer === event.container) {
    moveItemInArray(event.container.data, event.previousIndex, event.currentIndex);
  } else {
    transferArrayItem(
      event.previousContainer.data,
      event.container.data,
      event.previousIndex,
      event.currentIndex
    );
  }
}
```

- Use Virtual Scroll for large lists

```ts
import { ScrollingModule } from '@angular/cdk/scrolling';

@Component({
  standalone: true,
  imports: [ScrollingModule],
  template: `
    <cdk-virtual-scroll-viewport itemSize="50" class="viewport">
      <div *cdkVirtualFor="let item of items">{{item.name}}</div>
    </cdk-virtual-scroll-viewport>
  `
})
export class ListComponent {}
```

- Use Portal for dynamic content

```ts
import { DomPortalOutlet, TemplatePortal } from '@angular/cdk/portal';

@Component({ template: `<ng-template #dialogTemplate>Content</ng-template>` })
export class DialogComponent {
  @ViewChild('dialogTemplate') dialogTemplate!: TemplatePortal;

  attach() {
    const portalOutlet = new DomPortalOutlet(this.document.body);
    portalOutlet.attach(this.dialogTemplate);
  }
}
```

- Use A11y utilities for accessibility

```ts
import { A11yModule, CdkTrapFocus, LiveAnnouncer } from '@angular/cdk/a11y';

@Component({
  standalone: true,
  imports: [A11yModule],
  template: `
    <div cdkTrapFocus>

From oguzhan18/angular-ecosystem-skills, MIT.

More from oguzhan18/angular-ecosystem-skills

Signals

Stars
7
Forks
1
Open issues
0
Last commit (this folder)
Feb 18, 2026 (8 months ago)

From GitHub (fetched Oct 24, 2026).

Details

Version
21.0.3
License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from oguzhan18

Cite this page

angular-cdk skill. Agent Mart. https://agentmart.dev/skills/oguzhan18-angular-cdk (last updated 2026-10-24)