# chatter-box-input

> This Angular Material TextArea Input that a formControl displaying the charCount or Char Remaining

Latest version **1.0.3** (published 2022-03-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install chatter-box-input
pnpm add chatter-box-input
yarn add chatter-box-input
bun add chatter-box-input
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2022-03-06 |
| First published | 2022-02-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 79.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mike Boni |
| Maintainers | wavecoders |
| Keywords | angular, ui, text area, formControl, input, twitter, charater count, charater remaining |

## Links

- npm: https://www.npmjs.com/package/chatter-box-input
- Homepage: https://wavecoders.ca
- npm.io page: https://npm.io/package/chatter-box-input

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.3.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2022-03-06
- 1.0.2 — 2022-02-19
- 0.0.2 — 2022-02-18
- 0.0.1 — 2022-02-18

## README

# Chatterbox

Chatterbox is a simple material formcontrol component text area that expands and indicates the number of chars entered or remaining.

## Inputs

The following Inputs are available

| Input | Type | Defaut | Description |
| ----- | ---- | ------ | ----------- |
| maxLength   | NUMBER  | INF   | maximum amount of chars accepted for input |
| minLength   | NUMBER  | 0     | minimum amount of chars accepted for input |
| required    | BOOLEAN | FALSE | Text entry is required |
| label       | STRING  | NULL  | label for TextArea |
| placeholder | STRING  | NULL  | placeholder text in TextArea input |
| counterLabel| STRING  | NULL  | label for Counter |
| type        | NUMBER  | 1     | 1 is Total Count and -1 is Count Remaining |
| minRows     | NUMBER  | NULL  | Min Rows (Height) for TextArea |
| maxRows     | NUMBER  | NULL  | Max Rows (Height) for TextArea |
| appearence  | STRING  | NULL  | input style |
| readonly    | BOOLEAN | false | makes text for disabled state black NOT 50% |

## FormControl

`formControlName="comments"`

```
 countrySelection = this.fb.group({
    comments: [null],
  })
```

## Options

Here is the minimum setup required

```
  <wave-chatter-box
    [maxLength]="255"
    [minLength]="0"
    [label]="'Please enter your message'"
    [placeholder]="'I need some assisstance...'"
    [counterLabel]="'Total Remaining'"
    [type]="-1"
    formControlName="chatter"
  ></wave-chatter-box>
```

Here is the maximum setup
```
<div [formGroup]="form">

  <wave-chatter-box
    [maxLength]="100"
    [minLength]="10"
    [label]="'Please enter your message'"
    [placeholder]="'I need some assisstance...'"
    [counterLabel]="'Total Characters Remaining'"
    [type]="-1"
    [minRows]="15"
    [maxRows]="15"
    appearance="outline"
    required="true"
    [readOnly]="true"
    formControlName="chatter"
  ></wave-chatter-box>

</div>
```

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