# ionic2-autosize

> Directive that automatically adjusts textarea height to fit content

Latest version **1.1.2** (published 2017-06-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install ionic2-autosize
pnpm add ionic2-autosize
yarn add ionic2-autosize
bun add ionic2-autosize
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2017-06-27 |
| First published | 2016-08-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Maintainers | felixl |
| Keywords | ng2, angular, angular2, autosize, textarea, elastic, height, @angular |

## Links

- npm: https://www.npmjs.com/package/ionic2-autosize
- Repository: https://github.com/flivni/ionic2-autosize
- Homepage: https://github.com/flivni/ionic2-autosize#readme
- Issues: https://github.com/flivni/ionic2-autosize/issues
- npm.io page: https://npm.io/package/ionic2-autosize

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.1.2 (latest) — 2017-06-27
- 1.1.1 — 2017-04-30
- 1.1.0 — 2017-04-15
- 1.0.3 — 2017-04-15
- 1.0.2 — 2016-08-18
- 1.0.1 — 2016-08-18
- 1.0.0 — 2016-08-18

## README

# ionic2-autosize

***ionic2-autosize*** is an Ionic2 / Angular2 directive that automatically adjusts textarea height to fit content.

It adjusts the textarea height automatically to any text input, or changes to the model bound to the textarea.

## Acknowledgements
This code based on Steve Papa's [angular2-autosize solution](https://github.com/stevepapa/angular2-autosize)

## Installation:

```bash
npm install ionic2-autosize
```

## Use Example:

```typescript
import {Component} from '@angular/core';
import {Autosize} from 'ionic2-autosize';

@Component({
  template: `
    <ion-textarea autosize>
        "The time has come," the Walrus said,
        "To talk of many things:
        Of shoes--and ships--and sealing-wax--
        Of cabbages--and kings--
        And why the sea is boiling hot--
        And whether pigs have wings."

        "But wait a bit," the Oysters cried,
        "Before we have our squall;
        For some of us are out of breath,
        And all of us are tall!"
        "No hurry!" said the Carpenter.
        They thanked him much for all.
    </ion-textarea>
  `,
  directives: [Autosize]
})

class App {

}
```

## Authors

[Zeb Burke-Conte](http://zebburkeconte.com) & Felix

## Licence

This project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.

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