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

ngx-edit-inline

v22.0.0

Published

Super simple, zoneless-ready inline edit component for Angular.

Readme

ngx-edit-inline

A tiny, dependency-free inline-edit component for Angular. Click a value, edit it in place, done.

  • Standalone component — no NgModule needed
  • Signal inputs/outputs, OnPush, works in zoneless applications
  • Two-way [(value)] binding
  • Keyboard accessible (Enter/Space to edit, Enter to commit, Escape to cancel)
  • Themable through CSS custom properties
  • Zero runtime dependencies besides Angular

Open the live demo on StackBlitz · Changelog

Installation

npm install ngx-edit-inline

Requires Angular 20 or newer. The major version tracks the Angular major this package is built against, so install ngx-edit-inline@22 for Angular 20–22.

Older releases: ngx-edit-inline@15 (Angular 15) and ngx-edit-inline@1 (Angular 12 and earlier). Neither declared an Angular peerDependencies range, so npm will not warn you about a mismatch on those versions.

Usage

Import the standalone component where you need it:

import { Component, signal } from '@angular/core';
import { NgxEditInline } from 'ngx-edit-inline';

@Component({
  selector: 'app-profile',
  imports: [NgxEditInline],
  template: `<ngx-edit-inline [(value)]="name" placeholder="Enter a name" />`,
})
export class Profile {
  readonly name = signal('');
}

Or listen to the output instead of using a two-way binding:

<ngx-edit-inline
  [value]="person.name"
  type="text"
  saveOption="onedit"
  [debounceTime]="500"
  [selectText]="true"
  placeholder="Enter a name"
  (valueChanged)="save($event)"
/>

API

Inputs

| Input | Type | Default | Description | | -------------- | ----------------------------------------------------------- | ---------- | ------------------------------------------------------------------------------------------ | | value | string \| number \| null | null | Value to display and edit. Supports two-way binding: [(value)]. | | type | 'text' \| 'number' \| 'email' \| 'tel' \| 'url' \| 'date' | 'text' | Input type used while editing. 'number' emits numbers, or null when cleared. | | saveOption | 'onedit' \| 'focusout' | 'onedit' | onedit emits while typing (debounced), focusout only emits when the field loses focus. | | debounceTime | number | 500 | Debounce in ms, used when saveOption is 'onedit'. | | selectText | boolean | true | Selects the existing text when edit mode starts. | | placeholder | string | '' | Shown when the value is empty, both in display and edit mode. | | disabled | boolean | false | Prevents entering edit mode. | | ariaLabel | string \| null | null | Accessible label for the control. |

Outputs

| Output | Type | Description | | -------------- | -------------------------- | --------------------------------------------------------------------------------------------------------- | | valueChanged | string \| number \| null | Emits the new value whenever it is committed or reverted. null when a type="number" field is cleared. |

Styling

The component exposes CSS custom properties, so you can theme it without ::ng-deep:

ngx-edit-inline {
  --ngx-edit-inline-padding: 0.25rem 0.5rem;
  --ngx-edit-inline-radius: 4px;
  --ngx-edit-inline-outline: 1px solid #0a84ff;
  --ngx-edit-inline-placeholder-color: #999;
}

Font and colour are inherited from the surrounding element, so the component blends into any layout.

Migrating from 15.x or 1.x

  • NgxEditInlineModule is gone — import the standalone NgxEditInline component instead.
  • NgxEditInlineComponent was renamed to NgxEditInline.
  • The onValueChanged output was renamed to valueChanged.
  • value is now a two-way bindable model input.
  • AutofocusDirective is no longer exported; focus handling is built into the component.
  • Angular 20+ is required.
  • The version jumped from 15.0.0 to 22.0.0 to match the Angular major; no 2.x–21.x exists.

Development

This workspace needs Node 22.22.3+, 24.15+ or 26+ — the version in .nvmrc. If you use nvm, run nvm use first; otherwise npm install stops with an EBADENGINE error naming the required range.

nvm use             # switch to the Node version in .nvmrc
npm install
npm start           # serve the demo app
npm test            # run unit tests
npm run lint        # lint TypeScript and templates
npm run build       # build the library into dist/ngx-edit-inline
npm run release     # build and publish to npm

License

MIT