{"id":13839218,"url":"https://github.com/tgfjt/yo-yo-autogrow","last_synced_at":"2025-06-30T14:09:18.864Z","repository":{"id":57403974,"uuid":"66500411","full_name":"tgfjt/yo-yo-autogrow","owner":"tgfjt","description":"textarea component made from yo-yo, automatically adjust height","archived":false,"fork":false,"pushed_at":"2017-08-02T08:59:26.000Z","size":62,"stargazers_count":13,"open_issues_count":0,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-28T05:52:12.278Z","etag":null,"topics":["choo","yo-yo"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tgfjt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-24T21:20:37.000Z","updated_at":"2019-07-11T16:18:41.000Z","dependencies_parsed_at":"2022-09-15T20:12:19.931Z","dependency_job_id":null,"html_url":"https://github.com/tgfjt/yo-yo-autogrow","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/tgfjt/yo-yo-autogrow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tgfjt%2Fyo-yo-autogrow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tgfjt%2Fyo-yo-autogrow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tgfjt%2Fyo-yo-autogrow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tgfjt%2Fyo-yo-autogrow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tgfjt","download_url":"https://codeload.github.com/tgfjt/yo-yo-autogrow/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tgfjt%2Fyo-yo-autogrow/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262788742,"owners_count":23364399,"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","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":["choo","yo-yo"],"created_at":"2024-08-04T16:00:55.071Z","updated_at":"2025-06-30T14:09:18.825Z","avatar_url":"https://github.com/tgfjt.png","language":"JavaScript","funding_links":[],"categories":["Components"],"sub_categories":[],"readme":"# yo-yo-autogrow\n\n[![Build Status](https://travis-ci.org/tgfjt/yo-yo-autogrow.svg?branch=feature%2Ftest)](https://travis-ci.org/tgfjt/yo-yo-autogrow)\n[![npm](https://img.shields.io/npm/v/yo-yo-autogrow.svg?maxAge=2592000)]()\n![API stability](https://img.shields.io/badge/stability-experimental-orange.svg)\n![MIT Licensed](https://img.shields.io/npm/l/yo-yo-autogrow.svg)\n\nWrapper `\u003ctextarea /\u003e` UI Component made from [yo-yo](https://github.com/maxogden/yo-yo)\n\n![capture](capture.gif)\n\n## Usage\n\n```js\nconst autogrow = require('yo-yo-autogrow')\n\nconst el = yo`\u003cdiv\u003e\n  ${autogrow({\n    required: true,\n    placeholder: 'enter...'\n  })}\n\u003c/div\u003e`\n```\n\nwith [Choo](https://github.com/yoshuawuyts/choo)\n\n```js\nconst choo = require('choo')\nconst html = require('choo/html')\nconst autogrow = require('yo-yo-autogrow')\n\nconst app = choo()\n\napp.model({\n  state: {title: 'Sample with choo'}\n})\n\nconst mainView = (state) =\u003e html`\n  \u003cmain\u003e\n    \u003cdiv\u003e\n      \u003ch1\u003e${state.title}\u003c/h1\u003e\n      \u003cform\u003e\n        ${autogrow()}\n      \u003c/form\u003e\n    \u003c/div\u003e\n  \u003c/main\u003e\n`\n\ndocument.body.appendChild(tree)\n```\n\n\n### Properties\n\n| Property | Default |\n| :-- | :-- |\n| placeholder | `''` |\n| value | `''` |\n| name | `''` |\n| disabled | `false` |\n| required | `false` |\n| inputmode | `''` |\n| autocomplete | `'off'` |\n\n### Style\n\n| Property | Default |\n| :-- | :-- |\n| `--AutogrowTextarea-border` | `1px solid #ddd` |\n| `--AutogrowTextarea-border-focus` | `1px solid #9cc` |\n| `--AutogrowTextarea-width` | `100%` |\n| `--AutogrowTextarea-padding` | `4px 6px` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftgfjt%2Fyo-yo-autogrow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftgfjt%2Fyo-yo-autogrow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftgfjt%2Fyo-yo-autogrow/lists"}