{"id":20237400,"url":"https://github.com/react-widget/layout","last_synced_at":"2025-07-11T20:02:34.071Z","repository":{"id":33792455,"uuid":"160042399","full_name":"react-widget/layout","owner":"react-widget","description":"https://react-widget.github.io/layout/","archived":false,"fork":false,"pushed_at":"2023-01-03T15:38:18.000Z","size":5569,"stargazers_count":0,"open_issues_count":21,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-25T12:55:53.058Z","etag":null,"topics":["layout","react-widget"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/react-widget.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-12-02T11:56:03.000Z","updated_at":"2021-05-08T00:08:30.000Z","dependencies_parsed_at":"2023-01-15T02:35:45.346Z","dependency_job_id":null,"html_url":"https://github.com/react-widget/layout","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/react-widget/layout","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-widget%2Flayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-widget%2Flayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-widget%2Flayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-widget%2Flayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-widget","download_url":"https://codeload.github.com/react-widget/layout/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-widget%2Flayout/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264890053,"owners_count":23678829,"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":["layout","react-widget"],"created_at":"2024-11-14T08:26:49.650Z","updated_at":"2025-07-11T20:02:34.046Z","avatar_url":"https://github.com/react-widget.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-widget-layout\n\n## 安装\n\n```\nnpm install --save react-widget-layout\n```\n\n## 使用\n\n[![Edit react-widget-layout](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/elegant-sutherland-3lthx?fontsize=14\u0026hidenavigation=1\u0026theme=dark)\n\n```js\nimport {Layout, Header, Content, Footer} from 'react-widget-layout';\nimport 'react-widget-layout/style'\n\nexport default () =\u003e {\n    return (\n        \u003cLayout\u003e\n\t\t\t\u003cHeader\u003eHeader\u003c/Header\u003e\n\t\t\t\u003cContent\u003eContent\u003c/Content\u003e\n\t\t\t\u003cFooter\u003eFooter\u003c/Footer\u003e\n\t\t\u003c/Layout\u003e\n    );\n}\n```\n\n## Interface\n\n```ts\ninterface LayoutProps extends React.HTMLAttributes\u003cHTMLDivElement\u003e {\n    /** 默认为：rw-layout */\n    prefixCls?: string;\n}\n```\n\n## 基本样式\n\n```css\n.rw-layout {\n\tdisplay: flex;\n\tflex-direction: column;\n\tflex: auto;\n}\n.rw-layout-has-sider {\n\tflex-direction: row;\n}\n\n.rw-layout-sider,\n.rw-layout-header,\n.rw-layout-footer {\n\tflex: 0 0 auto;\n}\n\n.rw-layout-content {\n\tflex: auto;\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-widget%2Flayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact-widget%2Flayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-widget%2Flayout/lists"}