{"id":43793238,"url":"https://github.com/bymi15/react-edit-text","last_synced_at":"2026-02-05T20:35:48.884Z","repository":{"id":38015557,"uuid":"303789992","full_name":"bymi15/react-edit-text","owner":"bymi15","description":"Simple 'click to edit' editable text component for React","archived":false,"fork":false,"pushed_at":"2023-07-19T07:09:28.000Z","size":8943,"stargazers_count":54,"open_issues_count":4,"forks_count":11,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-06T06:59:46.236Z","etag":null,"topics":["click-to-edit","edit","editable","editable-text","editable-textbox","react","react-edit-text","simple","text","textbox"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-edit-text","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/bymi15.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-13T18:08:26.000Z","updated_at":"2025-06-30T20:30:36.000Z","dependencies_parsed_at":"2024-06-18T15:34:39.863Z","dependency_job_id":"1025d372-0eb8-4fe1-a826-bbbfb2fe0598","html_url":"https://github.com/bymi15/react-edit-text","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/bymi15/react-edit-text","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bymi15%2Freact-edit-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bymi15%2Freact-edit-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bymi15%2Freact-edit-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bymi15%2Freact-edit-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bymi15","download_url":"https://codeload.github.com/bymi15/react-edit-text/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bymi15%2Freact-edit-text/sbom","scorecard":{"id":260039,"data":{"date":"2025-08-11","repo":{"name":"github.com/bymi15/react-edit-text","commit":"63ee82c19459d82a332e8dd5f11187b11dda171f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 2/22 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/coverage.yml:1","Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Warn: no topLevel permission defined: .github/workflows/stale.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/coverage.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/bymi15/react-edit-text/coverage.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/coverage.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/bymi15/react-edit-text/coverage.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/bymi15/react-edit-text/publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/bymi15/react-edit-text/publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/stale.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/bymi15/react-edit-text/stale.yml/main?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 15 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"55 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-ghr5-ch3p-vcr6","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8mmm-9v2q-x3f9","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27","Warn: Project is vulnerable to: GHSA-4www-5p9h-95mh","Warn: Project is vulnerable to: GHSA-9gqv-wp59-fq42","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-x7hr-w5r2-h6wg","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-x2pg-mjhr-2m5x","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-hc6q-2mpp-qw7j","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986","Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6","Warn: Project is vulnerable to: GHSA-4v9v-hfq4-rm2v","Warn: Project is vulnerable to: GHSA-9jgg-88mc-972h","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T10:37:40.188Z","repository_id":38015557,"created_at":"2025-08-17T10:37:40.188Z","updated_at":"2025-08-17T10:37:40.188Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29133400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T19:36:52.185Z","status":"ssl_error","status_checked_at":"2026-02-05T19:35:40.941Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["click-to-edit","edit","editable","editable-text","editable-textbox","react","react-edit-text","simple","text","textbox"],"created_at":"2026-02-05T20:35:48.807Z","updated_at":"2026-02-05T20:35:48.874Z","avatar_url":"https://github.com/bymi15.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eReact Edit Text\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://sonarcloud.io/dashboard?id=bymi15_react-edit-text\"\u003e\n        \u003cimg src=\"https://sonarcloud.io/api/project_badges/measure?project=bymi15_react-edit-text\u0026metric=alert_status\" alt=\"Quality Gate Status\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://travis-ci.com/github/bymi15/react-edit-text\"\u003e\n        \u003cimg src=\"https://api.travis-ci.com/bymi15/react-edit-text.svg?branch=main\" alt=\"travis\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/react-edit-text\"\u003e\n        \u003cimg src=\"https://img.shields.io/npm/v/react-edit-text?color=brightgreen\u0026style=flat-squaret\" alt=\"npm\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/react-edit-text\"\u003e\n        \u003cimg src=\"https://img.shields.io/npm/dt/react-edit-text.svg?color=brightgreen\u0026style=flat-squaret\" alt=\"npm\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eThis is an easy-to-use \u003cb\u003eeditable text component\u003c/b\u003e for \u003ca href=\"https://reactjs.org/\"\u003eReact\u003c/a\u003e. Simply click on the textbox to edit!\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eMade with \u003cspan role=\"img\" aria-label=\"love\"\u003e❤️\u003c/span\u003e by \u003ca href=\"https://github.com/bymi15\"\u003eBrian Min\u003c/a\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg alt=\"demo\" src=\"https://raw.githubusercontent.com/bymi15/react-edit-text/main/demo.gif\"/\u003e\n\u003c/p\u003e\n\n## Demo\n\nPlease visit https://brianmin.com/react-edit-text/ for a live demo and various examples.\n\n## Install\n\n```bash\nnpm install react-edit-text --save\n```\n\n## Type definitions\n\n```bash\nnpm install @types/react-edit-text --save-dev\n```\n\n## Usage\n\nMake sure to import the \u003cb\u003eCSS stylesheet\u003c/b\u003e before using the component.\n\n```jsx\nimport React from 'react';\n\nimport { EditText, EditTextarea } from 'react-edit-text';\nimport 'react-edit-text/dist/index.css';\n\nexport default function Example() {\n  return (\n    \u003cdiv\u003e\n      \u003cEditText showEditButton /\u003e\n      \u003cEditTextarea /\u003e\n    \u003c/div\u003e\n  );\n}\n```\n\n## Props\n\n### Shared props\n\n| Prop              | Type     | Required | Default  | Description                                                           |\n| ----------------- | -------- | -------- | -------- | --------------------------------------------------------------------- |\n| id                | string   | No       |          | HTML DOM id attribute                                                 |\n| name              | string   | No       |          | HTML input name attribute                                             |\n| className         | string   | No       |          | HTML class attribute for the display component                        |\n| inputClassName    | string   | No       |          | HTML class attribute for the input component                          |\n| value             | string   | No       |          | Value of the component                                                |\n| defaultValue      | string   | No       |          | Default value of the component                                        |\n| placeholder       | string   | No       | ''       | Placeholder value                                                     |\n| formatDisplayText | function | No       | (x) =\u003e x | Callback function applied on the value to display the formatted value |\n| onSave            | function | No       |          | Callback function triggered when input is saved                       |\n| onChange          | function | No       |          | Callback function triggered when input is changed                     |\n| onEditMode        | function | No       |          | Callback function triggered when component is clicked                 |\n| onBlur            | function | No       |          | Callback function triggered when input is blurred                     |\n| style             | object   | No       |          | Sets CSS style of input and view component                            |\n| readonly          | bool     | No       | false    | Disables the input and only displays the view component               |\n\n### EditText props\n\n| Prop              | Type   | Required | Default                                                              | Description                                                                   |\n| ----------------- | ------ | -------- | -------------------------------------------------------------------- | ----------------------------------------------------------------------------- |\n| type              | string | No       | 'text'                                                               | HTML DOM input text type                                                      |\n| inline            | bool   | No       | false                                                                | Sets inline display                                                           |\n| showEditButton    | bool   | No       | false                                                                | Displays an edit button that can be pressed to enable edit mode               |\n| editButtonContent | node   | No       | \u003cimg src=\"./assets/images/editIcon.png\" alt=\"editIcon\" width=\"15\" /\u003e | Sets the content for the edit button. This can be any valid element           |\n| editButtonProps   | object | No       | {}                                                                   | Sets the props passed to the edit button. This can be any valid DOM attribute |\n\n### EditTextarea props\n\n| Prop | Type             | Required | Default | Description            |\n| ---- | ---------------- | -------- | ------- | ---------------------- |\n| rows | number \\| 'auto' | No       | 3       | Number of visible rows |\n\n## Contributing\n\nContributions are very much appreciated and welcome.\nPlease refer to the [contributing guidelines](https://github.com/bymi15/react-edit-text/blob/main/CONTRIBUTING.md) for more details.\n\n## License\n\nMIT © [Brian Min](https://github.com/bymi15)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbymi15%2Freact-edit-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbymi15%2Freact-edit-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbymi15%2Freact-edit-text/lists"}