{"id":13632464,"url":"https://github.com/Wulf/div","last_synced_at":"2025-04-18T02:33:16.568Z","repository":{"id":41550452,"uuid":"290116610","full_name":"Wulf/div","owner":"Wulf","description":"\u003cDiv row\u003e Use flexbox with ease in React! \u003c/Div\u003e","archived":false,"fork":false,"pushed_at":"2022-01-27T15:04:29.000Z","size":283,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-08T02:23:46.466Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Wulf.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":"2020-08-25T04:54:44.000Z","updated_at":"2023-07-25T14:38:35.000Z","dependencies_parsed_at":"2022-07-08T05:24:32.702Z","dependency_job_id":null,"html_url":"https://github.com/Wulf/div","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wulf%2Fdiv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wulf%2Fdiv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wulf%2Fdiv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wulf%2Fdiv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Wulf","download_url":"https://codeload.github.com/Wulf/div/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223772237,"owners_count":17199974,"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-08-01T22:03:03.863Z","updated_at":"2024-11-09T00:31:29.264Z","avatar_url":"https://github.com/Wulf.png","language":"TypeScript","readme":"# div\n\n\u003e \u0026lt;Div row\u0026gt; Use flexbox with ease in React! \u0026lt;/Div\u0026gt;\n\n[![NPM](https://img.shields.io/npm/v/div.svg)](https://www.npmjs.com/package/div) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Features\n\n* Easy to read \u0026 use flexbox!\n* Accepts all standard div props! (like `style`, `className` and `id`)\n* Typescript support!\n\n## Install\n\n```bash\n# with yarn:\nyarn add div\n\n# with npm:\nnpm install --save div\n```\n\n## Usage\n\n```tsx\nimport React, { Component } from 'react'\n\nimport { Div } from 'div'\n\nconst Example = () =\u003e {\n  return (\n    \u003cDiv row\u003e\n      \u003cDiv column flex={1}\u003e\n        A third of the space\n      \u003c/Div\u003e\n      \u003cDiv column flex={2}\u003e\n        Two thirds of space!\n      \u003c/Div\u003e\n    \u003c/Div\u003e\n  )\n}\n```\n\n## Props\n\n(All props are optional)\n\n### `flex`: {number | string}\n\n* Applies `flex: {number}`.\n* Reminder: the flex shorthand params are in this order:\n  `flex-grow`, `flex-shrink`, `flex-basis` (without commas)\n\n### `row`: {boolean}\n\n* Makes div a flex row.\n* Applies `display: flex` and `flex-direction: row`.\n\n### `column`: {boolean}\n\n* Makes div a flex column.\n* Applies `display: flex` and `flex-direction: column`.\n\n### `reverse`: {boolean}\n\n* Reverses the flex-direction if `column` or `row` are specified.\n\n### `wrap`: {boolean}\n\n* Applies `flex-wrap: 'wrap'`.\n* By default, a div's `flex-wrap` is `'nowrap'`.\n\n### `center`: {boolean}\n\n* Centers content if `row` or `column` are specified.\n* Applies `justify-content: 'center'` and `align-items: 'center'`.\n\n## License\n\nMIT © [Wulf](https://github.com/Wulf)\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWulf%2Fdiv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FWulf%2Fdiv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWulf%2Fdiv/lists"}