{"id":29112233,"url":"https://github.com/theprojectsx/react-popover","last_synced_at":"2026-01-20T17:03:10.310Z","repository":{"id":296235941,"uuid":"992751013","full_name":"TheProjectsX/react-popover","owner":"TheProjectsX","description":"Single tool to use Popover and Tooltip in React","archived":false,"fork":false,"pushed_at":"2025-08-20T16:51:34.000Z","size":197,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-04T10:37:53.169Z","etag":null,"topics":["react","react-dropdown","react-popover","react-tooltip"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@theprojectsx/react-popover","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheProjectsX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-05-29T16:49:15.000Z","updated_at":"2025-08-29T17:42:06.000Z","dependencies_parsed_at":"2025-05-29T17:22:07.555Z","dependency_job_id":"75195ab0-ce6d-4f04-843f-42c3d3d93e3c","html_url":"https://github.com/TheProjectsX/react-popover","commit_stats":null,"previous_names":["theprojectsx/react-popover"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TheProjectsX/react-popover","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheProjectsX%2Freact-popover","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheProjectsX%2Freact-popover/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheProjectsX%2Freact-popover/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheProjectsX%2Freact-popover/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheProjectsX","download_url":"https://codeload.github.com/TheProjectsX/react-popover/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheProjectsX%2Freact-popover/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28607624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"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","react-dropdown","react-popover","react-tooltip"],"created_at":"2025-06-29T10:38:16.666Z","updated_at":"2026-01-20T17:03:10.298Z","avatar_url":"https://github.com/TheProjectsX.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Popover\n\nA lightweight and flexible React Popover / Tooltip component.\n\n-   ⚡ **No ID or Ref needed** — just wrap and go!\n-   🎨 **Full control** — no default styles applied to your content.\n-   🧠 **Simple API** — intuitive props for easy customization.\n\n---\n\n## 🌐 Demo\n\nCheckout [Demo of react-popover](https://modasser.is-a.dev/react-popover/)\n\n## 🚀 Installation\n\n```bash\nnpm install @theprojectsx/react-popover\n# or\nyarn add @theprojectsx/react-popover\n```\n\n---\n\n## 💡 Usage\n\n```jsx\nimport Popover from \"@theprojectsx/react-popover\";\n\nconst Page = () =\u003e {\n    return (\n        \u003cdiv\u003e\n            \u003cPopover\n                content={\u003cp className=\"p-4\"\u003eHere Lies some useful content\u003c/p\u003e}\n                position=\"bottom\"\n                axis=\"center\"\n            \u003e\n                \u003cbutton className=\"px-5 py-2 rounded-2xl bg-neutral-200 cursor-pointer\"\u003e\n                    Click ME!\n                \u003c/button\u003e\n            \u003c/Popover\u003e\n        \u003c/div\u003e\n    );\n};\n\nexport default Page;\n```\n\n---\n\n## ⚙️ Props\n\n| Prop              | Type                                                 | Default    | Description                                                        |\n| ----------------- | ---------------------------------------------------- | ---------- | ------------------------------------------------------------------ |\n| `content`         | `React.ReactNode`                                    | —          | Content to show inside the popover                                 |\n| `className`       | `string`                                             | —          | Class for the content wrapper                                      |\n| `parentStyles`    | `React.CSSProperties`                                | —          | Inline styles for the parent element                               |\n| `position`        | `\"top\" \\| \"bottom\" \\| \"left\" \\| \"right\"`             | `\"bottom\"` | Where the popover appears relative to trigger                      |\n| `axis`            | `\"center\" \\| \"top\" \\| \"bottom\" \\| \"left\" \\| \"right\"` | `\"center\"` | Axis alignment of the popover                                      |\n| `triggerType`     | `\"auto\" \\| \"manual\"`                                 | `\"auto\"`   | Whether to trigger on interaction or control manually              |\n| `contentVisible`  | `boolean`                                            | `false`    | Show/hide popover manually (used when `triggerType` is `\"manual\"`) |\n| `viewOnHover`     | `boolean`                                            | `true`     | Show popover on hover instead of click (only in `auto` mode)       |\n| `closeOnClick`    | `boolean`                                            | `true`     | Close Popover when clicked in trigger                              |\n| `onWrapperBlur`   | `(e) =\u003e void`                                        | —          | Called when user clicks outside the popover                        |\n| `onStatusChanged` | `(status: boolean) =\u003e void`                          | —          | Called when Status of popover changes while `triggerType = auto`   |\n| `gap`             | `number`                                             | `10`       | Used to decide the gap between trigger and content                 |\n\n---\n\n## 🧪 License\n\nMIT © [@theprojectsx](https://github.com/theprojectsx)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheprojectsx%2Freact-popover","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheprojectsx%2Freact-popover","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheprojectsx%2Freact-popover/lists"}