{"id":20078703,"url":"https://github.com/wpdas/react-tweet","last_synced_at":"2026-05-12T10:31:41.190Z","repository":{"id":172093964,"uuid":"648838376","full_name":"wpdas/react-tweet","owner":"wpdas","description":"A simple Tweet component for ReactJS apps.","archived":false,"fork":false,"pushed_at":"2023-06-03T19:28:23.000Z","size":399,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-13T01:11:46.566Z","etag":null,"topics":["app","component","react","tweet"],"latest_commit_sha":null,"homepage":"","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/wpdas.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":"2023-06-03T00:36:16.000Z","updated_at":"2023-06-03T19:30:15.000Z","dependencies_parsed_at":"2023-07-01T09:45:29.816Z","dependency_job_id":null,"html_url":"https://github.com/wpdas/react-tweet","commit_stats":null,"previous_names":["wpdas/react-tweet"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpdas%2Freact-tweet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpdas%2Freact-tweet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpdas%2Freact-tweet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpdas%2Freact-tweet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wpdas","download_url":"https://codeload.github.com/wpdas/react-tweet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241509659,"owners_count":19974071,"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":["app","component","react","tweet"],"created_at":"2024-11-13T15:16:16.918Z","updated_at":"2026-05-12T10:31:36.155Z","avatar_url":"https://github.com/wpdas.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tweet - React Component\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/wpdas/react-tweet/publish.yml?style=for-the-badge\u0026colorB=000000)](https://github.com/wpdas/react-tweet/actions?query=workflow%3Apublish)\n[![Build Size](https://img.shields.io/bundlephobia/minzip/@wpdas/react-tweet?color=000000\u0026label=bundle\u0026style=for-the-badge)](https://bundlephobia.com/package/@wpdas/react-tweet)\n[![Version](https://img.shields.io/npm/v/@wpdas/react-tweet?style=for-the-badge\u0026colorB=000000)](https://www.npmjs.com/package/@wpdas/react-tweet)\n\nA simple Tweet component for ReactJS apps.\n\n## Install\n\nInstall it using npm or yarn:\n\n```sh\n# npm\nnpm install @wpdas/react-tweet\n\n# yarn\nyarn add @wpdas/react-tweet\n```\n\n## How to use\n\n```tsx\nimport { Tweet } from '@wpdas/react-tweet'\n\nconst App = () =\u003e {\n  return (\n    \u003c\u003e\n      \u003cTweet\n        tweetURL=\"https://twitter.com/wpdas/status/1648406388127801347\"\n        onRender={() =\u003e console.log('rendered')}\n        onError={(err: string) =\u003e console.log(err)}\n        options={{ theme: 'dark' }}\n      /\u003e\n    \u003c/\u003e\n  )\n}\n\nexport default App\n```\n\n**tweetURL:** (must) this is the tweet URL\n\n**onRender:** (optional) method called when the tweet renders\n\n**onError:** (optional) method called when there's an issue with the provided URL\n\n**options:** (optional) you can set some options like:\n\n```ts\ntype Options = {\n  conversation?: 'none' | 'all'\n  cards?: 'hidden' | 'visible'\n  linkColor?: string\n  theme?: 'light' | 'dark'\n}\n```\n\n### How it looks after rendering:\n\n\u003cimg src='./md/tweet.png' height='550' alt='Tweet example' /\u003e\n\n## Good to know\n\nThe component will be re-rendered when the `tweetURL` or `options` property is changed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpdas%2Freact-tweet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpdas%2Freact-tweet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpdas%2Freact-tweet/lists"}