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

@ng-modular-forms/material

v0.10.1

Published

Reusable Angular Material form controls with typed reactive forms, built-in ControlValueAccessor support, and enterprise-ready form patterns.

Readme

Installation

npm install @ng-modular-forms/material

Note: This will also install @ng-modular-forms/core.

Styles Setup

Add the global styles to your application's angular.json file under the styles array:

"styles": [
  "src/styles.css",
  "node_modules/@ng-modular-forms/material/styles/form-controls.css"
]

Global configuration

Material controls can be configured globally using provideNmfMaterialConfig.

This configuration only affects visual behavior of Material components.

Available options

appearance: MatFormFieldAppearance;
floatLabel: FloatLabelType;
detachLabels: boolean;
hideRequiredMarker: boolean;

Example

import { ApplicationConfig } from '@angular/core';
import { provideNmfMaterialConfig } from '@ng-modular-forms/material';

export const appConfig: ApplicationConfig = {
  providers: [
    provideNmfMaterialConfig({
      floatLabel: 'always',
      appearance: 'outline',
    }),
  ],
};

Translation

Translation is handled globally by @ng-modular-forms/core. This includes validation messages.

Material components automatically use the core configuration.

Usage Example

import { MatInputTextComponent } from "@ng-modular-forms/material";

@Component({
  template: `
    <form [formGroup]="form" (ngSubmit)="submit()">
      <nmf-mat-text formControlName="fieldA" label="Field A" />
      <nmf-mat-text formControlName="fieldB" label="Field B" />

      <button type="submit">Submit</button>
    </form>
  `,
})
export class ExampleComponent {
  form = new FormGroup({
    fieldA: new FormControl(null),
    fieldB: new FormControl(null),
  });
}

Available Input Components

All components share a consistent API and are interchangeable between Native and Material implementations without changing form logic.

Prefixes / Suffixes are enabled for text and number fields, allowing number to double as a currency field.

| Input Type | Selector | |-----------------|-----------------------| | Text / Password | nmf-mat-text | | Lookup | nmf-mat-lookup | | Number | nmf-mat-number | | Date | nmf-mat-datepicker | | Select | nmf-mat-select | | Textarea | nmf-mat-textarea | | Time | nmf-mat-timepicker |

Built On

  • Angular Reactive Forms
  • Angular Material
  • ControlValueAccessor (CVA)
  • Standalone Components
  • RxJS

Features

  • Reusable Angular Material form controls
  • Typed reactive forms support
  • Built-in ControlValueAccessor integration
  • Consistent validation and error handling
  • Loading and disabled states
  • Standalone component support
  • Reduced reactive forms boilerplate
  • Enterprise-ready form architecture

Requires

  • @ng-modular-forms/core
  • @angular/material
  • @angular/cdk

License

MIT