{"id":38632610,"url":"https://github.com/CampusLabs/olay-react","last_synced_at":"2026-01-25T06:00:42.514Z","repository":{"id":57314112,"uuid":"20814150","full_name":"CampusLabs/olay-react","owner":"CampusLabs","description":"Olay implemented as a React component.","archived":false,"fork":false,"pushed_at":"2017-07-20T20:20:57.000Z","size":229,"stargazers_count":15,"open_issues_count":0,"forks_count":2,"subscribers_count":20,"default_branch":"master","last_synced_at":"2026-01-14T09:02:41.720Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/CampusLabs.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}},"created_at":"2014-06-13T18:42:17.000Z","updated_at":"2020-10-06T20:51:42.000Z","dependencies_parsed_at":"2022-08-31T04:10:44.538Z","dependency_job_id":null,"html_url":"https://github.com/CampusLabs/olay-react","commit_stats":null,"previous_names":["orgsync/olay-react"],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/CampusLabs/olay-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CampusLabs%2Folay-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CampusLabs%2Folay-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CampusLabs%2Folay-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CampusLabs%2Folay-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CampusLabs","download_url":"https://codeload.github.com/CampusLabs/olay-react/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CampusLabs%2Folay-react/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28745836,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T05:12:38.112Z","status":"ssl_error","status_checked_at":"2026-01-25T05:04:50.338Z","response_time":113,"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":[],"created_at":"2026-01-17T09:00:40.583Z","updated_at":"2026-01-25T06:00:42.503Z","avatar_url":"https://github.com/CampusLabs.png","language":"JavaScript","readme":"# OlayReact\n\n[Olay] implemented as a [React] component.\n\n\n## Install\n\n```bash\nbower install olay-react\n```\n\nor\n\n```bash\nnpm install olay-react\n```\n\n## Browser Support\n\nOlayReact supports all of the modern browsers out of the box. To support older\nversions of IE (\u003c= 9), you will need to include a shim to add [classList]\nsupport.\n\n## API\n\n### Top-Level\n\n#### OlayReact\n\nOlayReact is a normal React component. To open or close the Olay, simply add or remove a child element to the Olay component.\n\n### Properties\n\n#### close `required`\n\nProvide a `close` function to be invoked when an action has dictated that the\nOlay should be closed. This function should ensure the OlayReact component will\nhave no children in it the next time `render` is called. See the test file for\nan example of using React `state` to manage the state of the Olay's visibility.\n\n#### transitionName\n\nThe name of the transition to use, defaults to `olay-fade` which is provided in\n[olay-react.css](olay-react.css).\n\n#### transitionEnter/transitionLeave\n\nBoolean values that determine when transitions should be used, each default to\n`true`.\n\n#### children\n\nRender children inside of the OlayReact component to open an Olay with those children. Render no children to hide the Olay.\n\n## Examples\n\nCheck out [the test file](https://orgsync.github.io/olay-react/test.html) for a\nfull example.\n\n## Known Issues\n\n- Preventing tab-focusing from leaving the Olay is not implemented. The only\n  solutions I've found (including the one orgsync/olay uses) are quite hacky.\n\n[Olay]: https://github.com/orgsync/olay\n[React]: https://github.com/facebook/react\n[classList]: https://developer.mozilla.org/en-US/docs/Web/API/Element.classList\n","funding_links":[],"categories":["Awesome React","📦 Legacy \u0026 Inactive Projects"],"sub_categories":["Tools"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCampusLabs%2Folay-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCampusLabs%2Folay-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCampusLabs%2Folay-react/lists"}