{"id":22840479,"url":"https://github.com/lemmon/custom-textarea","last_synced_at":"2025-03-31T04:27:48.588Z","repository":{"id":57126717,"uuid":"227089685","full_name":"lemmon/custom-textarea","owner":"lemmon","description":"Web Components custom-textarea element.","archived":false,"fork":false,"pushed_at":"2021-03-03T15:26:12.000Z","size":47,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T04:33:23.075Z","etag":null,"topics":["autogrow","custom-elements","html","textarea","web-components"],"latest_commit_sha":null,"homepage":"https://www.lemmonjuice.com/custom-textarea/","language":"HTML","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/lemmon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-10T10:23:21.000Z","updated_at":"2021-03-03T15:26:14.000Z","dependencies_parsed_at":"2022-08-31T13:51:08.540Z","dependency_job_id":null,"html_url":"https://github.com/lemmon/custom-textarea","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemmon%2Fcustom-textarea","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemmon%2Fcustom-textarea/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemmon%2Fcustom-textarea/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemmon%2Fcustom-textarea/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lemmon","download_url":"https://codeload.github.com/lemmon/custom-textarea/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246417129,"owners_count":20773812,"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":["autogrow","custom-elements","html","textarea","web-components"],"created_at":"2024-12-13T01:12:07.260Z","updated_at":"2025-03-31T04:27:48.570Z","avatar_url":"https://github.com/lemmon.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \\\u003ccustom-textarea\\\u003e\n\nWeb Components custom-textarea element.\n\nReason behind this component is to create a plain unstyled autogrowing textarea.\n\n[Demo](https://www.lemmonjuice.com/custom-textarea/)\n\n## Install\n\n```sh\nnpm i @lemmon/custom-textarea\n```\n\nor reference directly:\n\n```html\n\u003cscript src=\"https://unpkg.com/@lemmon/custom-textarea\"\u003e\n```\n\n### Usage\n\n```js\n// does register the component for you\n// with `custom-textarea` tagname\nimport '@lemmon/custom-textarea'\n```\n\nor\n\n```js\n// does not register the component,\n// useful when you want to extend the component\n// or to chose a different tag name\nimport Textarea from '@lemmon/custom-textarea/textarea'\nclass TextareaUpgraded extends Textarea {}\ncustomElements.define('upgraded-textarea', TextareaUpgraded)\n```\n\n### Use With The CDN\n\n```html\n\u003cscript type=\"module\" src=\"https://unpkg.com/@lemmon/custom-textarea\"\u003e\u003c/script\u003e\n\n\u003c!-- or for the ES5 version --\u003e\n\n\u003cscript src=\"https://unpkg.com/@lemmon/custom-textarea/dist/es5.js\"\u003e\u003c/script\u003e\n```\n\n## Example\n\n```html\n\u003ccustom-textarea name=\"text\"\u003eHello World!\u003c/custom-textarea\u003e\n```\n\nYou can apply your own styles. Fonts, colors, line-height, and padding are inherited. Placeholder styles can be defined using CSS variables.\n\n```css\ncustom-textarea {\n  --placeholder-color: orange; /* default: inherit */\n  --placeholder-opacity: 1; /* default: 0.5 */\n}\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemmon%2Fcustom-textarea","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flemmon%2Fcustom-textarea","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemmon%2Fcustom-textarea/lists"}