{"id":22249049,"url":"https://github.com/haxe-react/haxe-react-media","last_synced_at":"2025-03-25T11:44:41.872Z","repository":{"id":57261841,"uuid":"116663008","full_name":"haxe-react/haxe-react-media","owner":"haxe-react","description":"CSS media queries for Haxe React.","archived":false,"fork":false,"pushed_at":"2019-10-02T13:23:55.000Z","size":4,"stargazers_count":2,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T02:03:37.426Z","etag":null,"topics":["haxe","media-queries","reactjs"],"latest_commit_sha":null,"homepage":null,"language":"Haxe","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/haxe-react.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":"2018-01-08T10:32:17.000Z","updated_at":"2019-10-02T13:23:57.000Z","dependencies_parsed_at":"2022-08-25T06:01:21.363Z","dependency_job_id":null,"html_url":"https://github.com/haxe-react/haxe-react-media","commit_stats":null,"previous_names":["klabz/haxe-react-media"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxe-react%2Fhaxe-react-media","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxe-react%2Fhaxe-react-media/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxe-react%2Fhaxe-react-media/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxe-react%2Fhaxe-react-media/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haxe-react","download_url":"https://codeload.github.com/haxe-react/haxe-react-media/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245458199,"owners_count":20618693,"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":["haxe","media-queries","reactjs"],"created_at":"2024-12-03T06:21:31.542Z","updated_at":"2025-03-25T11:44:41.840Z","avatar_url":"https://github.com/haxe-react.png","language":"Haxe","readme":"# Haxe react media\n\nA haxe-only version of the\n[`react-media`](https://www.npmjs.com/package/react-media) npm package, a CSS\nmedia query component for React..\n\nA `\u003cMedia\u003e` component listens for matches to a CSS media query and renders\nstuff based on whether the query matches or not.\n\n## Getting Started\n\n### Installing\n\n```\nhaxelib install react-media\n```\n\nNo need for the npm package, this version is haxe-only.\n\n### Usage with React\n\n```haxe\nimport react.ReactComponent;\nimport react.ReactMacro.jsx;\nimport react.media.Media;\n\nclass MyComponent extends ReactComponent {\n\toverride public function render() {\n\t\treturn jsx('\n\t\t\t\u003cdiv\u003e\n\t\t\t\t\u003c$Media query=\"(min-width: 42em)\"\u003e\n\t\t\t\t\t\u003cp\u003eThe answer\u003c/p\u003e\n\t\t\t\t\u003c/$Media\u003e\n\t\t\t\u003c/div\u003e\n\t\t');\n\t}\n}\n```\n\nSee [React-Training/react-media](https://github.com/ReactTraining/react-media)\nfor more documentation.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaxe-react%2Fhaxe-react-media","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaxe-react%2Fhaxe-react-media","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaxe-react%2Fhaxe-react-media/lists"}