{"id":22155305,"url":"https://github.com/ssbeefeater/react-typed","last_synced_at":"2025-05-16T11:03:46.497Z","repository":{"id":27118928,"uuid":"112571347","full_name":"ssbeefeater/react-typed","owner":"ssbeefeater","description":"A react wrapper for typed.js","archived":false,"fork":false,"pushed_at":"2024-06-18T19:28:18.000Z","size":4097,"stargazers_count":341,"open_issues_count":14,"forks_count":34,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-12T12:08:56.701Z","etag":null,"topics":["reactjs"],"latest_commit_sha":null,"homepage":"http://ssbeefeater.github.io/react-typed","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/ssbeefeater.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-30T06:02:06.000Z","updated_at":"2025-05-04T10:55:40.000Z","dependencies_parsed_at":"2024-02-23T14:24:36.877Z","dependency_job_id":"0741f3a9-b577-4327-bfc0-dd7e0b80ae37","html_url":"https://github.com/ssbeefeater/react-typed","commit_stats":{"total_commits":65,"total_committers":3,"mean_commits":"21.666666666666668","dds":0.09230769230769231,"last_synced_commit":"203da85a1f8e46da90bce668d1517f59c60a507b"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbeefeater%2Freact-typed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbeefeater%2Freact-typed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbeefeater%2Freact-typed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbeefeater%2Freact-typed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ssbeefeater","download_url":"https://codeload.github.com/ssbeefeater/react-typed/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254518383,"owners_count":22084374,"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":["reactjs"],"created_at":"2024-12-02T02:16:30.201Z","updated_at":"2025-05-16T11:03:46.476Z","avatar_url":"https://github.com/ssbeefeater.png","language":"TypeScript","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# react-typed\n\n### A react wrapper for [typed.js](https://github.com/mattboldt/typed.js)\n\n### react-typed v2 changelog\n\n- Rewrite in typescript\n- Support for react 18\n- option to start animation only when the element is visible\n- new property parseRef for supporting custom components that handles ref differently (see last example)\n- update docs with latest storybook version\n\n---\n\n[Installation](#installation)\n\n[Docs \u0026 Examples](http://ssbeefeater.github.io/react-typed)\n\n---\n\n#### Installation\n\nInstall with [yarn](https://yarnpkg.com) or [npm](https://www.npmjs.com/)\n\n```sh\nyarn add react-typed\n        #or\nnpm install react-typed --save\n```\n\n---\n\n#### Examples\n\n```javascript\nimport { ReactTyped } from \"react-typed\";\n\nconst MyComponent = () =\u003e (\n  \u003cdiv\u003e\n    \u003cReactTyped strings={[\"Here you can find anything\"]} typeSpeed={40} /\u003e\n    \u003cbr /\u003e\n\n    \u003cReactTyped\n      strings={[\n        \"Search for products\",\n        \"Search for categories\",\n        \"Search for brands\",\n      ]}\n      typeSpeed={40}\n      backSpeed={50}\n      attr=\"placeholder\"\n      loop\n    \u003e\n      \u003cinput type=\"text\" /\u003e\n    \u003c/ReactTyped\u003e\n  \u003c/div\u003e\n);\n```\n\n\n###### Using typed start, stop, toggle, destroy, reset functions\n\n```javascript\nimport { ReactTyped,Typed } from \"react-typed\";\n\nconst MyComponent  {\n  const [typed,setTyped] = React.useState\u003cTyped| undefined\u003e()\n\n  return (\n      \u003cdiv\u003e\n        \u003cButton onClick={typed.start()}\u003eStart\u003c/Button\u003e\n        \u003cButton onClick={typed.stop()}\u003eStop\u003c/Button\u003e\n        \u003cButton onClick={typed.toggle()}\u003eToggle\u003c/Button\u003e\n        \u003cButton onClick={typed.destroy()}\u003eDestroy\u003c/Button\u003e\n        \u003cButton onClick={typed.reset()}\u003eReset\u003c/Button\u003e\n        \u003cReactTyped\n          typedRef={setTyped}\n          strings={[\"Here you can find anything\"]}\n          typeSpeed={40}\n        /\u003e\n      \u003c/div\u003e\n    )\n}\n```\n\n###### Start only if is visible in the dom\n\n```javascript\nimport { ReactTyped } from \"react-typed\";\n\nconst MyComponent = () =\u003e (\n  \u003cReactTyped\n    startWhenVisible\n    strings={[\n      \"If \u003cstrong\u003estartWhenVisible\u003c/strong\u003e is \u003cstrong\u003etrue\u003c/strong\u003e, will start when is visible in the dom\",\n    ]}\n    typeSpeed={40}\n  /\u003e\n);\n```\n\n#### Using parseRef for custom components\n\n```javascript\nimport { ReactTyped } from \"react-typed\";\nimport { Input } from \"antd\";\n\nconst MyComponent = () =\u003e (\n  \u003cReactTyped parseRef={(ref) =\u003e ref.current.input} attr=\"placeholder\" strings={[\"Add a name here\"]} typeSpeed={40} \u003e\n    \u003cInput\u003e\n  \u003c/ReactTyped\u003e\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssbeefeater%2Freact-typed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fssbeefeater%2Freact-typed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssbeefeater%2Freact-typed/lists"}