{"id":18440561,"url":"https://github.com/fooloomanzoo/text-input","last_synced_at":"2025-04-07T22:31:38.013Z","repository":{"id":57741268,"uuid":"117895194","full_name":"fooloomanzoo/text-input","owner":"fooloomanzoo","description":"input for text","archived":false,"fork":false,"pushed_at":"2018-11-16T23:36:50.000Z","size":349,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T22:58:09.291Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/fooloomanzoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-17T21:32:08.000Z","updated_at":"2018-11-16T23:36:11.000Z","dependencies_parsed_at":"2022-09-09T06:01:42.664Z","dependency_job_id":null,"html_url":"https://github.com/fooloomanzoo/text-input","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fooloomanzoo%2Ftext-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fooloomanzoo%2Ftext-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fooloomanzoo%2Ftext-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fooloomanzoo%2Ftext-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fooloomanzoo","download_url":"https://codeload.github.com/fooloomanzoo/text-input/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247740873,"owners_count":20988283,"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":[],"created_at":"2024-11-06T06:31:11.196Z","updated_at":"2025-04-07T22:31:36.303Z","avatar_url":"https://github.com/fooloomanzoo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Published on NPM](https://img.shields.io/npm/v/@fooloomanzoo/text-input.svg)](https://www.npmjs.com/package/@fooloomanzoo/text-input)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/@fooloomanzoo/text-input)\n\n_[API \u0026 Demo](https://fooloomanzoo.github.io/text-input)_\n\n## \\\u003ctext-input\\\u003e\n\nAn input for text values.\n\n### Motivation\n\nThe normal `input` with `type=\"text\"` is fairly good to use, but it has some flaws, because it should if wanted e.g.:\n\n* guarantee **live**-value to be valid\n* to be styled easily\n* auto resize on input\n\n### Example\n```html\n  \u003cp\u003e\n    hex-color: \u003ctext-input id=\"hex\" value=\"{{value}}\" input=\"{{input}}\" default=\"#111\" required pattern=\"^#(?:[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$\" size=\"7\" maxlength=\"7\" minlength=\"4\"\u003e\u003c/text-input\u003e\n  \u003c/p\u003e\n  \u003cp\u003epattern: \u003cb\u003e^#(?:[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$\u003c/b\u003e\u003c/p\u003e\n  \u003cp\u003einput: \u003cb\u003e[[input]]\u003c/b\u003e\u003c/p\u003e\n  \u003cp\u003evalue: \u003cb\u003e[[value]]\u003c/b\u003e\u003c/p\u003e\n```\n\n### Styling\nHave a look at [input-picker-pattern#input-shared-style](https://github.com/fooloomanzoo/input-picker-pattern#input-shared-style) to see how to style the element.\n\n### Installation\n```\nnpm i @fooloomanzoo/text-input\n```\n\n### License\n[MIT](https://github.com/fooloomanzoo/text-input/blob/master/LICENSE.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffooloomanzoo%2Ftext-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffooloomanzoo%2Ftext-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffooloomanzoo%2Ftext-input/lists"}