{"id":13850434,"url":"https://github.com/danreeves/react-tether","last_synced_at":"2026-03-17T20:03:05.954Z","repository":{"id":2145255,"uuid":"45794987","full_name":"danreeves/react-tether","owner":"danreeves","description":"React wrapper around Tether","archived":false,"fork":false,"pushed_at":"2024-02-03T15:27:08.000Z","size":3527,"stargazers_count":388,"open_issues_count":3,"forks_count":70,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-30T17:44:53.431Z","etag":null,"topics":["react","reactjs","tether"],"latest_commit_sha":null,"homepage":"https://danreeves.github.io/react-tether/","language":"TypeScript","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/danreeves.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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":"2015-11-08T19:20:21.000Z","updated_at":"2025-09-09T18:52:37.000Z","dependencies_parsed_at":"2023-02-17T18:15:27.961Z","dependency_job_id":"fcb50e0a-0ff0-4fc9-b874-0f72a569f992","html_url":"https://github.com/danreeves/react-tether","commit_stats":{"total_commits":226,"total_committers":33,"mean_commits":6.848484848484849,"dds":0.6725663716814159,"last_synced_commit":"d1ed620230c495e9009ebcf7c69f132d8d8be8b4"},"previous_names":["souporserious/react-tether"],"tags_count":37,"template":false,"template_full_name":null,"purl":"pkg:github/danreeves/react-tether","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danreeves%2Freact-tether","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danreeves%2Freact-tether/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danreeves%2Freact-tether/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danreeves%2Freact-tether/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danreeves","download_url":"https://codeload.github.com/danreeves/react-tether/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danreeves%2Freact-tether/sbom","scorecard":{"id":321641,"data":{"date":"2025-08-11","repo":{"name":"github.com/danreeves/react-tether","commit":"079552976f998e8011dc49188fec50fe0d84000b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"name":"Code-Review","score":2,"reason":"Found 7/30 approved changesets -- score normalized to 2","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":"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":"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/danreeves/react-tether/main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/danreeves/react-tether/main.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/danreeves/react-tether/main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/danreeves/react-tether/main.yml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/main.yml:20","Warn: npmCommand not pinned by hash: .github/workflows/main.yml:31","Warn: npmCommand not pinned by hash: .github/workflows/main.yml:51","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   3 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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"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":"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 9 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"}}]},"last_synced_at":"2025-08-18T01:30:15.399Z","repository_id":2145255,"created_at":"2025-08-18T01:30:15.399Z","updated_at":"2025-08-18T01:30:15.399Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30630030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: 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":["react","reactjs","tether"],"created_at":"2024-08-04T20:01:12.166Z","updated_at":"2026-03-17T20:03:05.918Z","avatar_url":"https://github.com/danreeves.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# React Tether\n\n![CI Status](https://github.com/danreeves/react-tether/actions/workflows/main.yml/badge.svg)\n[![Sauce Test Status](https://app.saucelabs.com/buildstatus/react-tether)](https://app.saucelabs.com/u/react-tether)\n\n\u003e Cross-browser Testing Platform and Open Source \u003c3 Provided by [Sauce Labs](https://saucelabs.com/).\n\n---\n\nReact wrapper around [Tether](https://github.com/shipshapecode/tether), a positioning engine to make overlays, tooltips and dropdowns better\n\n![React Tether](images/tether-header.png)\n\n## Install\n\n`npm install react-tether`\n\n**As of version 2, a minimum of React 16.3 is required. If you need support for React \u003c 16.3 please use the [1.x branch](https://github.com/danreeves/react-tether/tree/1.x).**\n\n## Example Usage\n\n```javascript\nimport TetherComponent from \"react-tether\";\n\nclass SimpleDemo extends React.Component {\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.state = {\n\t\t\tisOpen: false,\n\t\t};\n\t}\n\n\trender() {\n\t\tconst { isOpen } = this.state;\n\n\t\treturn (\n\t\t\t\u003cTetherComponent\n\t\t\t\tattachment=\"top center\"\n\t\t\t\tconstraints={[\n\t\t\t\t\t{\n\t\t\t\t\t\tto: \"scrollParent\",\n\t\t\t\t\t\tattachment: \"together\",\n\t\t\t\t\t},\n\t\t\t\t]}\n\t\t\t\t/* renderTarget: This is what the item will be tethered to, make sure to attach the ref */\n\t\t\t\trenderTarget={(ref) =\u003e (\n\t\t\t\t\t\u003cbutton\n\t\t\t\t\t\tref={ref}\n\t\t\t\t\t\tonClick={() =\u003e {\n\t\t\t\t\t\t\tthis.setState({ isOpen: !isOpen });\n\t\t\t\t\t\t}}\n\t\t\t\t\t\u003e\n\t\t\t\t\t\tToggle Tethered Content\n\t\t\t\t\t\u003c/button\u003e\n\t\t\t\t)}\n\t\t\t\t/* renderElement: If present, this item will be tethered to the the component returned by renderTarget */\n\t\t\t\trenderElement={(ref) =\u003e\n\t\t\t\t\tisOpen \u0026\u0026 (\n\t\t\t\t\t\t\u003cdiv ref={ref}\u003e\n\t\t\t\t\t\t\t\u003ch2\u003eTethered Content\u003c/h2\u003e\n\t\t\t\t\t\t\t\u003cp\u003eA paragraph to accompany the title.\u003c/p\u003e\n\t\t\t\t\t\t\u003c/div\u003e\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t/\u003e\n\t\t);\n\t}\n}\n```\n\n## Props\n\n#### `renderTarget`: PropTypes.func\n\nThis is a [render prop](https://reactjs.org/docs/render-props.html), the component returned from this function will be Tether's `target`. One argument, ref, is passed into this function. This is a ref that must be attached to the highest possible DOM node in the tree. If this is not done the element will not render.\n\n#### `renderElement`: PropTypes.func\n\nThis is a [render prop](https://reactjs.org/docs/render-props.html), the component returned from this function will be Tether's `element`, that will be moved. If no component is returned, the target will still render, but with no element tethered. One argument, ref, is passed into this function. This is a ref that must be attached to the highest possible DOM node in the tree. If this is not done the element will not render.\n\n#### `renderElementTag`: PropTypes.string\n\nThe tag that is used to render the Tether element, defaults to `div`.\n\n#### `renderElementTo`: PropTypes.string\n\nWhere in the DOM the Tether element is appended. Passes in any valid selector to `document.querySelector`. Defaults to `document.body`.\n\nTether requires this element to be `position: static;`, otherwise it will default to `document.body`. See [this example](https://danreeves.github.io/react-tether/tests/renderelementto/) for more information.\n\n#### `Tether Options`:\n\nAny valid [Tether options](https://tetherjs.dev/#usage).\n\n#### `children`:\n\nPrevious versions of react-tether used children to render the target and component, using children will now throw an error. Please use renderTarget and renderElement instead\n\n## Imperative API\n\nThe following methods are exposed on the component instance:\n\n- `getTetherInstance(): Tether`\n- `disable(): void`\n- `enable(): void`\n- `on(event: string, handler: function, ctx: any): void`\n- `once(event: string, handler: function, ctx: any): void`\n- `off(event: string, handler: function): void`\n- `position(): void`\n\n#### Example usage:\n\n```javascript\n\u003cTetherComponent\n\tref={(tether) =\u003e (this.tether = tether)}\n\trenderTarget={(ref) =\u003e \u003cTarget ref={ref} /\u003e}\n\trenderElement={(ref) =\u003e (\n\t\t\u003cElement ref={ref} onResize={() =\u003e this.tether \u0026\u0026 this.tether.position()} /\u003e\n\t)}\n/\u003e\n```\n\n## Run Example\n\nclone repo\n\n`git clone git@github.com:danreeves/react-tether.git`\n\nmove into folder\n\n`cd ~/react-tether`\n\ninstall dependencies\n\n`npm install`\n\nrun dev mode\n\n`npm run demo`\n\nopen your browser and visit: `http://localhost:1234/`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanreeves%2Freact-tether","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanreeves%2Freact-tether","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanreeves%2Freact-tether/lists"}