{"id":13807108,"url":"https://github.com/adopted-ember-addons/ember-autoresize","last_synced_at":"2025-12-30T00:56:13.507Z","repository":{"id":8720282,"uuid":"10391087","full_name":"adopted-ember-addons/ember-autoresize","owner":"adopted-ember-addons","description":"Autoresize for Ember Components","archived":false,"fork":false,"pushed_at":"2020-09-15T14:00:38.000Z","size":6159,"stargazers_count":88,"open_issues_count":22,"forks_count":29,"subscribers_count":14,"default_branch":"latest","last_synced_at":"2025-11-24T01:25:11.694Z","etag":null,"topics":["ember-addon","resize"],"latest_commit_sha":null,"homepage":"http://tim-evans.github.io/ember-autoresize/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adopted-ember-addons.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-30T20:21:13.000Z","updated_at":"2024-12-11T02:43:50.000Z","dependencies_parsed_at":"2022-08-31T02:51:05.624Z","dependency_job_id":null,"html_url":"https://github.com/adopted-ember-addons/ember-autoresize","commit_stats":null,"previous_names":["tim-evans/ember-autoresize","paddle8/ember-autoresize"],"tags_count":45,"template":false,"template_full_name":null,"purl":"pkg:github/adopted-ember-addons/ember-autoresize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adopted-ember-addons%2Fember-autoresize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adopted-ember-addons%2Fember-autoresize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adopted-ember-addons%2Fember-autoresize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adopted-ember-addons%2Fember-autoresize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adopted-ember-addons","download_url":"https://codeload.github.com/adopted-ember-addons/ember-autoresize/tar.gz/refs/heads/latest","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adopted-ember-addons%2Fember-autoresize/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27654350,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-11T02:00:11.302Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ember-addon","resize"],"created_at":"2024-08-04T01:01:20.911Z","updated_at":"2025-12-12T04:03:23.491Z","avatar_url":"https://github.com/adopted-ember-addons.png","language":"JavaScript","funding_links":[],"categories":["Packages"],"sub_categories":["Inputs"],"readme":"# Ember AutoResize [![Ember Observer Score](http://emberobserver.com/badges/ember-autoresize.svg)](http://emberobserver.com/addons/ember-autoresize) [![Code Climate](https://codeclimate.com/github/tim-evans/ember-autoresize/badges/gpa.svg)](https://codeclimate.com/github/tim-evans/ember-autoresize)\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/tim-evans/ember-autoresize.svg)](https://greenkeeper.io/)\n\n**Note: if you're using a version of Ember less than `1.12.0`, then please use `0.4.1` of this addon.**\n\nEmber AutoResize is an Ember-CLI addon for providing autoresize functionality to Ember. This package currently provides the necessary bootstrapping for `{{input}}` and `{{textarea}}` components.\n\nTo play with the addon, look at our [demo](http://tim-evans.github.io/ember-autoresize). (Note: The demo is a bit out of date, check the documentation below for proper usage.)\n\n## Usage\n\nTo enable autoresizing on an input, add the following to your handlebars:\n\n```handlebars\n{{input autoresize=true}}\n```\n\nRefresh your page, and you should see that when you type in your text field, it automatically resizes to fit the text.\n\nTextareas work exactly the same way:\n\n```handlebars\n{{textarea autoresize=true}}\n```\n\n### Options\n\n#### max-width\n\nSet the maximum width of the resizeable element. If no unit is provided, it assumes that it's in pixels.\n\n```handlebars\n{{input autoresize=true max-width=200}}\n```\n\n#### max-height\n\nSet the maximum width of the element. If no unit is provided, it assumes that it's in pixels.\n\n```handlebars\n{{input autoresize=true max-height=300}}\n```\n\n#### rows\n\nSet the minimum number of rows for the element. Recommended for textareas.\n\n```handlebars\n{{textarea autoresize=true rows=2}}\n```\n\n#### max-rows\n\nSet the maximum number of rows for the element.  Recommended for textareas.\n\n```handlebars\n{{textarea autoresize=true max-rows=10}}\n```\n\nIf you are making custom inputs using raw DOM elements, you can still use autoresize\nby specifying a custom `autoresizeElement` when you mixin the autoresize to your component.\n\n```js\nimport Ember from 'ember';\n\nexport default Ember.Component.extend({\n  autoresizeElementDidChange: on('didInsertElement', function () {\n    set(this, 'autoresizeElement', this.$('input')[0]);\n  })\n});\n```\n\n## Installation\n\n```bash\nember install ember-autoresize\n```\n\n## Roadmap\n- Optimize style lookups\n- Font fitting\n- Clearer ways to enable autoresizing on templates\n\n# Contributing\n\nContributors are welcome! Please provide a reproducible test case. Details will be worked out on a case-per-case basis. Maintainers will get in touch when they can, so delays are possible. For contribution guidelines, see the [code of conduct](https://github.com/tim-evans/ember-plupload/blob/master/CONDUCT.md).\n\n### Publishing Documentation\n\nTo publish documentation (under the tests/dummy directory) run the following command:\n\n```bash\nnpm run-script publish-docs\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadopted-ember-addons%2Fember-autoresize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadopted-ember-addons%2Fember-autoresize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadopted-ember-addons%2Fember-autoresize/lists"}