# ngx-input-suffix

> Angular directive that render helper text to the right of input text

Latest version **2.0.0** (published 2020-04-15) · 0 weekly downloads

## Install

```sh
npm install ngx-input-suffix
pnpm add ngx-input-suffix
yarn add ngx-input-suffix
bun add ngx-input-suffix
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2020-04-15 |
| First published | 2019-10-28 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 213.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Alexandr Vetrov |
| Maintainers | bree7e |

## Links

- npm: https://www.npmjs.com/package/ngx-input-suffix
- Repository: https://github.com/bree7e/ngx-input-suffix
- Issues: https://github.com/bree7e/ngx-input-suffix/issues
- npm.io page: https://npm.io/package/ngx-input-suffix

## Recent versions

- 2.0.0 (latest) — 2020-04-15
- 1.0.1 — 2019-10-28
- 1.0.0 — 2019-10-28

## README

# ngx-input-suffix

Angular directive that render helper text to the right of input text

## Demo

![ngx-input-suffix demo](https://raw.githubusercontent.com/bree7e/ngx-input-suffix/master/assets/ngx-input-suffix-demo.gif)

[Demo application](https://bree7e.github.io/ngx-input-suffix/)

## Installation

To install this library, run:

```bash
$ npm install ngx-input-suffix ngx-window-token --save
```

and then import module:

```typescript
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

import { NgxSuffixModule } from 'ngx-input-suffix'; // <=== 

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    NgxSuffixModule // <===
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
```

## Usage
`ngxSuffix` should place inside `ngxSuffixWrapper`
```html
<div ngxSuffixWrapper>
  <input ngxSuffix=".example.com"/>
</div>
```

Support initial value
```html
<div ngxSuffixWrapper>
  <input ngxSuffix=".example.com" value="domain" />
</div>
<div ngxSuffixWrapper>
  <input ngxSuffix=".angular.com" [(ngModel)]="domain" />
</div>
```

## Customization
There is `--ngx-input-suffix__text-color` css variable to set suffix color. Default color is grey.
```css
.wrapper {
  --ngx-input-suffix__text-color: black;
}
```

---
_Source: https://npm.io/package/ngx-input-suffix · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
