{"id":15415308,"url":"https://github.com/jaredpalmer/emotion-jsxstyle","last_synced_at":"2025-04-19T13:21:19.984Z","repository":{"id":146971742,"uuid":"109861409","full_name":"jaredpalmer/emotion-jsxstyle","owner":"jaredpalmer","description":"jsxstyle primitives powered by emotion","archived":false,"fork":false,"pushed_at":"2018-05-25T18:14:57.000Z","size":278,"stargazers_count":20,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-10T15:13:30.447Z","etag":null,"topics":["css","css-in-js","emotion","jsxstyle"],"latest_commit_sha":null,"homepage":"https://npm.im/emotion-jsxstyle","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/jaredpalmer.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-07T16:26:58.000Z","updated_at":"2021-09-01T01:15:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"26879104-d51c-4133-b31f-bc2b616f0fcf","html_url":"https://github.com/jaredpalmer/emotion-jsxstyle","commit_stats":{"total_commits":10,"total_committers":3,"mean_commits":"3.3333333333333335","dds":"0.19999999999999996","last_synced_commit":"68087b4c53e1d0e90d2137da4d255f51085e6d0e"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredpalmer%2Femotion-jsxstyle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredpalmer%2Femotion-jsxstyle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredpalmer%2Femotion-jsxstyle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredpalmer%2Femotion-jsxstyle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredpalmer","download_url":"https://codeload.github.com/jaredpalmer/emotion-jsxstyle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231242715,"owners_count":18346597,"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":["css","css-in-js","emotion","jsxstyle"],"created_at":"2024-10-01T17:07:57.968Z","updated_at":"2024-12-26T02:37:33.877Z","avatar_url":"https://github.com/jaredpalmer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# emotion jsxstyle\n\n[jsxstyle](https://github.com/smyte/jsxstyle) primitives powered by [emotion](https://github.com/emotion-js/emotion)\n\n\n```sh\nnpm i emotion react-emotion emotion-jsxstyle\n```\n\n\n## Usage\n\n```jsx\nimport React from 'react'\nimport { Block, Row  } from 'emotion-jsxstyle'\n\nconst App = () =\u003e (\n  \u003cRow alignItems=\"center\"\u003e\n    \u003cBlock padding=\"1rem\" color=\"red\" \u003e\n      Hello\n    \u003c/Block\u003e\n    \u003cBlock margin=\"2rem\" background=\"#b7b7b7\"\u003e\n     Goodbye\n    \u003c/Block\u003e\n  \u003c/Row\u003e\n)\n```\n\n## Component Primitives\n\n- `\u003cBlock\u003e`\n- `\u003cInlineBlock\u003e`\n- `\u003cInline\u003e`\n- `\u003cFlex\u003e`\n- `\u003cRow\u003e`\n- `\u003cCol\u003e`\n- `\u003cInlineFlex\u003e`\n- `\u003cGrid\u003e`\n- `\u003cBox\u003e`\n\n## Props\n\n- `component`: specify the underlying DOM element. Defaults to `div`\n- `props`: If you need to pass props to the underlying component, you can pass them through a special `props` props (just like jsxstyle).\n- `css`: If you prefer the glamor css object syntax instead of just props, you can pass styles to a `css` prop. Useful for media queries etc.\n\n## Refs\n\nJust pass refs to `props` prop.\n\n```jsx\nimport React from 'react'\nimport { Col, Block } from 'emotion-jsxstyle'\n\nclass App extends React.Component {\n  render() {\n    return (\n      \u003cCol\u003e\n        \u003cBlock component=\"input\" name=\"thing\" props={{\n          ref: i =\u003e this.input = i,\n          defaultValue: 'Hello',\n        }}/\u003e\n      \u003c/Col\u003e \n    )\n  }\n}\n```\n\n### Author\n\n- Jared Palmer [@jaredpalmer](https://twitter.com/jaredpalmer)\n\n---\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredpalmer%2Femotion-jsxstyle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredpalmer%2Femotion-jsxstyle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredpalmer%2Femotion-jsxstyle/lists"}