{"id":13437285,"url":"https://github.com/tcoopman/react-flexbox","last_synced_at":"2025-04-06T22:10:05.618Z","repository":{"id":25574600,"uuid":"29008373","full_name":"tcoopman/react-flexbox","owner":"tcoopman","description":"React flexbox implementation","archived":false,"fork":false,"pushed_at":"2017-12-10T17:36:49.000Z","size":44,"stargazers_count":162,"open_issues_count":0,"forks_count":12,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-30T21:07:17.150Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tcoopman.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}},"created_at":"2015-01-09T08:46:18.000Z","updated_at":"2022-07-19T03:10:39.000Z","dependencies_parsed_at":"2022-07-26T09:47:58.837Z","dependency_job_id":null,"html_url":"https://github.com/tcoopman/react-flexbox","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcoopman%2Freact-flexbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcoopman%2Freact-flexbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcoopman%2Freact-flexbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcoopman%2Freact-flexbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tcoopman","download_url":"https://codeload.github.com/tcoopman/react-flexbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247557767,"owners_count":20958047,"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":[],"created_at":"2024-07-31T03:00:55.698Z","updated_at":"2025-04-06T22:10:05.595Z","avatar_url":"https://github.com/tcoopman.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized","UI Components","UI Layout","Soluções","Featured Projects"],"sub_categories":["Uncategorized","Layout","Form Components","[Sketching with CSS](http://www.sketchingwithcss.com) Flexbox Guide by [@sfioritto](https://github.com/sfioritto)"],"readme":"# React-flexbox\n\nImplementation of css flexbox in react with inline styles.\nIt is written in ES6 and requires an ES6 to ES5 transpiler. If there is need for\nit I can add a transpiled version to the repo.\n\n# API\n\n## Install\n```\nnpm install react-flexbox --save\nyarn add react-flexbox\n```\n```js\nconst View = require('react-flexbox')\n// or\nimport View from 'react-flexbox'\n```\n\n## UMD\nModule exposed as `ReactFlexbox`\n\n```\n\u003cscript src=\"https://unpkg.com/react-flexbox/dist/react-flexbox.js\"\u003e\u003c/scrip\u003e\n```\n```js\nconst View = ReactFlexbox.default\n```\n\n## Components\n\n### View\n\nA flex view element that can be used instead of `FlexRow` or `FlexColumn`\n\nThis is default import.\n\nSome simple examples:\n\n```js\n\u003cView row\u003e\n  \u003cView auto row\u003e\n    \u003cView column width=\"100px\"\u003e\u003cView className=\"red\"\u003eLeft\u003c/View\u003e\u003c/View\u003e\n    \u003cView column width=\"100px\"\u003e\u003cView className=\"red\"\u003eLeft\u003c/View\u003e\u003c/View\u003e\n  \u003c/View\u003e\n  \u003cView row className=\"green\"\u003eAll the place in the world\u003c/View\u003e\n\u003c/View\u003e\n```\n\n```js\n\u003cView column height=\"200px\"\u003e\n  \u003cView column auto\u003e\n    \u003cView className=\"green\" height=\"20px\"\u003eGreen\u003c/View\u003e\n    \u003cView className=\"red\" height=\"20px\"\u003eRed\u003c/View\u003e\n  \u003c/View\u003e\n  \u003cView className=\"green\"\u003eDe rest\u003c/View\u003e\n\u003c/View\u003e\n```\n\n### Props\n\nAll props are optional and can be set on both components.\n\n#### row\n\nboolean, sets the flexDirection to row\n\n#### column\n\nboolean, sets the flexDirection to column\n\n#### auto\n\nboolean, sets flex to '0 0 auto'\n\n#### className\n\nmust be a string\n\n#### height\n\n_height_ must be a string with a valid css unit.\n\n#### style\n\nWill be merged the flex style. This allows you to override the style.\n\n#### width\n\n_width_ can be either a number `width={2}`, this acts as _flex-grow_ or a string\nwith a unit (for example _%_ or _px_) - it must be a valid css unit.\n\n### FlexRow\n\n*deprecated*\n\nA flex row.\nThis is a `View` with prop `row`\n\n### FlexColumn\n\n*deprecated*\n\nA flex column\nThis is a `View` with prop `column`\n\n\n# Examples\n\nSee _examples_\n\nTo run, make sure the devDependencies are installed and run `npm run example`,\nafter that surf to _http://localhost:8080/webpack-dev-server/_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcoopman%2Freact-flexbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftcoopman%2Freact-flexbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcoopman%2Freact-flexbox/lists"}