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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@libregrid/material

v1.3.5

Published

Angular Material adapters for AG Grid Community — part of LibreGrid

Readme

@libregrid/material

Match a LibreGrid grid to an Angular Material 3 application. The theme bridge maps Material color tokens to Quartz and follows theme changes. Optional renderers provide Material controls for selected grid UI elements.

Documentation and examples

Install

In an Angular application with a configured Material 3 theme:

npm install "ag-grid-community@^36.2.0" "ag-grid-angular@^36.2.0" @libregrid/angular @libregrid/material

The bridge requires Angular core, common, Material, and CDK >=20, plus ag-grid-community >=36.1.0 <37. Install Material and CDK at versions compatible with the rest of your Angular application if they are not already present. Match ag-grid-angular to the AG Grid Community version.

Usage

Add the theme provider and grid module registration to app.config.ts:

import type { ApplicationConfig } from '@angular/core';
import { AllCommunityModule } from 'ag-grid-community';
import { provideLibreGrid } from '@libregrid/angular';
import { provideLibreGridMaterialTheme } from '@libregrid/material';

export const appConfig: ApplicationConfig = {
  providers: [provideLibreGrid(AllCommunityModule), provideLibreGridMaterialTheme()],
};

Bind the grid's theme to the service in a standalone component:

import { Component, inject } from '@angular/core';
import { AgGridAngular } from 'ag-grid-angular';
import type { ColDef } from 'ag-grid-community';
import { LibreGridThemeService } from '@libregrid/material';

interface Row {
  name: string;
  quantity: number;
}

@Component({
  selector: 'app-material-grid',
  standalone: true,
  imports: [AgGridAngular],
  template: `
    <ag-grid-angular
      style="display: block; height: 400px"
      [theme]="theme.gridTheme()"
      [rowData]="rowData"
      [columnDefs]="columnDefs"
    />
  `,
})
export class MaterialGridComponent {
  protected readonly theme = inject(LibreGridThemeService);
  readonly rowData: Row[] = [{ name: 'Notebook', quantity: 12 }];
  readonly columnDefs: ColDef<Row>[] = [{ field: 'name' }, { field: 'quantity' }];
}

Bootstrap your application with that configuration as shown in the Angular quick start. Keep your Material theme styles in the application stylesheet; the bridge reads the tokens, it does not create the application's Material theme. By default it observes the document root. Use the provider's root option if another element carries your theme tokens.

Theme and renderer behavior

gridTheme() is a signal containing the Quartz theme built from the current Material tokens. The service observes changes to the theme root and exposes setMode, toggle, setAccent, and setDensity controls.

When instantiated, the service also installs the Material menu renderer, side-bar renderer, and columns-panel drag adapter. Register the corresponding LibreGrid feature modules to use those surfaces. You do not need to install those renderers a second time.

The rich-select editor is a separate opt-in. Register RichSelectModule from @libregrid/rich-select, then pass your grid options to installMaterialRichSelectCellEditor(options) before creating the grid.

MaterialStatusBarComponent is a standalone Angular presentation component with a required text input. Render it in your own template with <lgr-material-status-bar [text]="summary" />; it is not an AG Grid status-panel implementation. Your component supplies the summary string.

API

| Export | Purpose | | ------------------------------------------------------------ | ------------------------------------------------------------------- | | provideLibreGridMaterialTheme(options?) | Configure the injectable bridge; supports root, density, and accent | | LibreGridThemeService | Reactive theme and mode, accent, and density controls | | buildGridTheme(root?, density?) | Build a theme without the reactive service | | installMaterialSideBarRenderer(appRef, envInjector) | Install the side-bar renderer without using the theme service | | installMaterialRichSelectCellEditor(options) | Add the Material cell editor to grid options | | MaterialStatusBarComponent | Angular status-text component | | createMaterialColumnsToolPanelDragDropAdapter(envInjector) | Create a custom panel drag adapter | | installMaterialColumnsToolPanelDragDrop(envInjector) | Install that adapter outside the theme service |

These integrations use Angular and Material; for a plain TypeScript grid, use the standard Quartz theme and framework-independent feature packages.

License

MIT — see LICENSE and NOTICE. LibreGrid is an independent project and is not affiliated with, endorsed by, or sponsored by AG Grid Ltd.