npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@gerandon/ngx-mat-cdk-deep-menu

v20.0.1

Published

Angular material based menu button that handles nested menu options.

Readme

@gerandon/ngx-mat-cdk-deep-menu

(RADME was generated by GPT-5)

An Angular component library that provides a deep (multi-level) menu built with Angular CDK and Angular Material. It focuses on accessibility, keyboard navigation, and a clean API for nested menu structures.

Features

  • Multi-level (deep) nested menus
  • Accessible and keyboard-navigable structure
  • Built on Angular CDK + Angular Material
  • Lightweight and tree-shakable
  • Strongly typed menu model
  • Easy integration with standalone Angular components

Demo

A demo application is included in the repository under projects/demo. It showcases a nested menu setup and Material theming integration.

Installation

npm install @gerandon/ngx-mat-cdk-deep-menu

Peer dependencies you should have in your project:

  • Angular 20
  • @angular/material 20
  • @angular/cdk 20
  • rxjs 7

Quick Start

  1. Import the component into your standalone component:
import { Component, signal } from '@angular/core'; 
import { MenuComponent } from '@gerandon/ngx-mat-cdk-deep-menu'; 
import { Menu } from '@gerandon/ngx-mat-cdk-deep-menu/menu-item';

@Component({ 
  selector: 'app-root',
  imports: [MenuComponent],
  template: `<gerandon-menu [items]="menuItems"></gerandon-menu>`, 
  standalone: true 
}) 
export class AppComponent {
  readonly menuItems: Menu[] = []; 
}
  1. Ensure Angular Material styles are included (via your global styles or theme setup).

Usage

  • Input
    • items: Menu[] — Array of menu items with optional nested children.
  • Menu item model
    • label: string
    • children?: Menu[]
    • icon?: string
    • disabled?: boolean
    • any additional custom fields you map in your templates/handlers

Example with deeper nesting:

const items: Menu[] = [];

Theming

  • Works with Angular Material theming.
  • You can override component styles in your global or component stylesheets.
  • Make sure your Material theme is applied to the app for consistent styling.

Accessibility

  • Built with Angular CDK patterns for focus management and keyboard navigation.
  • Use semantic labels and consider ARIA attributes for custom needs.

Development

  • Library source: projects/ngx-mat-cdk-deep-menu
  • Demo app: projects/demo

Common scripts:

Version Compatibility

  • Angular: 20.x
  • @angular/material: 20.x
  • TypeScript: 5.8.x
  • RxJS: 7.8.x

Contributing

  • Open an issue for bugs or feature requests.
  • Follow Angular and Material best practices.
  • Use conventional commits if possible.

License

MIT