{"id":13561533,"url":"https://github.com/react-component/drawer","last_synced_at":"2026-02-06T10:21:12.043Z","repository":{"id":26609802,"uuid":"109344858","full_name":"react-component/drawer","owner":"react-component","description":"React Drawer","archived":false,"fork":false,"pushed_at":"2026-01-27T05:47:45.000Z","size":13177,"stargazers_count":426,"open_issues_count":35,"forks_count":105,"subscribers_count":18,"default_branch":"master","last_synced_at":"2026-01-27T18:42:52.579Z","etag":null,"topics":["drawer","rc-drawer","react"],"latest_commit_sha":null,"homepage":"https://drawer-react-component.vercel.app/","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-component.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"ant-design","patreon":null,"open_collective":"ant-design","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2017-11-03T02:55:11.000Z","updated_at":"2026-01-27T05:47:48.000Z","dependencies_parsed_at":"2024-01-14T03:33:03.407Z","dependency_job_id":"c805bf7e-d18d-4d54-baea-e09f67071e0f","html_url":"https://github.com/react-component/drawer","commit_stats":{"total_commits":389,"total_committers":29,"mean_commits":"13.413793103448276","dds":"0.46529562982005146","last_synced_commit":"b4472f7fddbeabb0592f9f9ea8eae3ec7ec2d5ed"},"previous_names":["ant-motion/drawer","ant-motion/drawer-menu"],"tags_count":149,"template":false,"template_full_name":null,"purl":"pkg:github/react-component/drawer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fdrawer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fdrawer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fdrawer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fdrawer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-component","download_url":"https://codeload.github.com/react-component/drawer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fdrawer/sbom","scorecard":{"id":198402,"data":{"date":"2025-08-04","repo":{"name":"github.com/react-component/drawer","commit":"2418e05f927d89b2eefe6bf70be0dec36d3177a2"},"scorecard":{"version":"v5.2.1-28-gc1d103a9","commit":"c1d103a9bb9f635ec7260bf9aa0699466fa4be0e"},"score":4.1,"checks":[{"name":"Code-Review","score":4,"reason":"Found 9/19 approved changesets -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/react-component-ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#token-permissions"}},{"name":"Maintained","score":3,"reason":"4 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/react-component-ci.yml:5: update your workflow using https://app.stepsecurity.io/secureworkflow/react-component/drawer/react-component-ci.yml/master?enable=pin","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 1 commits out of 23 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T22:17:25.390Z","repository_id":26609802,"created_at":"2025-08-16T22:17:25.390Z","updated_at":"2025-08-16T22:17:25.390Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29157673,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T07:18:23.844Z","status":"ssl_error","status_checked_at":"2026-02-06T07:13:32.659Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["drawer","rc-drawer","react"],"created_at":"2024-08-01T13:00:58.036Z","updated_at":"2026-02-06T10:21:12.035Z","avatar_url":"https://github.com/react-component.png","language":"TypeScript","funding_links":["https://github.com/sponsors/ant-design","https://opencollective.com/ant-design"],"categories":["TypeScript"],"sub_categories":[],"readme":"# @rc-component/drawer\n\n[![NPM version][npm-image]][npm-url]\n[![npm download][download-image]][download-url]\n[![build status][github-actions-image]][github-actions-url]\n[![codecov][codecov-image]][codecov-url]\n[![dumi][dumi-image]][dumi-url]\n\n[npm-image]: http://img.shields.io/npm/v/@rc-component/drawer.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/@rc-component/drawer\n[dumi-image]: https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square\n[dumi-url]: https://github.com/umijs/dumi\n[github-actions-image]: https://github.com/react-component/drawer/actions/workflows/react-component-ci.yml/badge.svg\n[github-actions-url]: https://github.com/react-component/drawer/actions/workflows/react-component-ci.yml\n[download-image]: https://img.shields.io/npm/dm/@rc-component/drawer.svg?style=flat-square\n[download-url]: https://npmjs.org/package/@rc-component/drawer\n[codecov-image]: https://codecov.io/gh/react-component/drawer/branch/master/graph/badge.svg\n[codecov-url]: https://codecov.io/gh/react-component/drawer\n\n\n## Example\n\nhttps://drawer-react-component.vercel.app/\n\n## Usage\n\n```js\nimport Drawer from '@rc-component/drawer';\nimport React from 'react';\nimport ReactDom from 'react-dom';\n\nReactDom.render(\n  \u003cDrawer\u003e\n    {menu children}\n  \u003c/Drawer\u003e\n, mountNode);\n```\n\n## Install\n\n[![@rc-component/drawer](https://nodei.co/npm/@rc-component/drawer.png)](https://npmjs.org/package/@rc-component/drawer)\n\n## Browser Support\n\n| ![IE](https://github.com/alrra/browser-logos/blob/master/src/edge/edge_48x48.png?raw=true) | ![Chrome](https://github.com/alrra/browser-logos/blob/master/src/chrome/chrome_48x48.png?raw=true) | ![Firefox](https://github.com/alrra/browser-logos/blob/master/src/firefox/firefox_48x48.png?raw=true) | ![Opera](https://github.com/alrra/browser-logos/blob/master/src/opera/opera_48x48.png?raw=true) | ![Safari](https://github.com/alrra/browser-logos/blob/master/src/safari/safari_48x48.png?raw=true) |\n| ------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |\n| IE 10+ ✔                                                                                  | Chrome 31.0+ ✔                                                                                    | Firefox 31.0+ ✔                                                                                      | Opera 30.0+ ✔                                                                                  | Safari 7.0+ ✔                                                                                     |\n\n## API\n\n| props              | type                                                                        | default                                | description                                                                   |\n| ------------------ | --------------------------------------------------------------------------- | -------------------------------------- | ----------------------------------------------------------------------------- |\n| className          | string                                                                      | null                                   | -                                                                             |\n| classNames         | { mask?: string; content?: string; wrapper?: string; }                      | -                                      | pass className to target area                                                 |\n| styles             | { mask?: CSSProperties; content?: CSSProperties; wrapper?: CSSProperties; } | `rc-drawer`                            | pass style to target area                                                     |\n| prefixCls          | string                                                                      | 'drawer'                               | prefix class                                                                  |\n| width              | string \\| number                                                            | null                                   | drawer content wrapper width, drawer level transition width                   |\n| height             | string \\| number                                                            | null                                   | drawer content wrapper height, drawer level transition height                 |\n| defaultWidth       | string \\| number                                                            | null                                   | default width for uncontrolled resizable drawer                               |\n| defaultHeight      | string \\| number                                                            | null                                   | default height for uncontrolled resizable drawer                              |\n| open               | boolean                                                                     | false                                  | open or close menu                                                            |\n| defaultOpen        | boolean                                                                     | false                                  | default open menu                                                             |\n| placement          | string                                                                      | `left`                                 | `left` `top` `right` `bottom`                                                 |\n| level              | string \\| array                                                             | `all`                                  | With the drawer level element. `all`/ null / className / id / tagName / array |\n| levelMove          | number \\| array \\| func                                                     | null                                   | level move value. default is drawer width                                     |\n| duration           | string                                                                      | `.3s`                                  | level animation duration                                                      |\n| ease               | string                                                                      | `cubic-bezier(0.78, 0.14, 0.15, 0.86)` | level animation timing function                                               |\n| getContainer       | string \\| func \\| HTMLElement                                               | `body`                                 | Return the mount node for Drawer. if is `null` use React.creactElement        |\n| showMask           | boolean                                                                     | true                                   | mask is show                                                                  |\n| maskClosable       | boolean                                                                     | true                                   | Clicking on the mask (area outside the Drawer) to close the Drawer or not.    |\n| maskStyle          | CSSProperties                                                               | null                                   | mask style                                                                    |\n| afterOpenChange    | func                                                                        | null                                   | transition end callback(open)                                                 |\n| onClose            | func                                                                        | null                                   | close click function                                                          |\n| keyboard           | boolean                                                                     | true                                   | Whether support press esc to close                                            |\n| autoFocus          | boolean                                                                     | true                                   | Whether focusing on the drawer after it opened                                |\n| resizable          | { onResize?: (size: number) =\u003e void; onResizeStart?: () =\u003e void; onResizeEnd?: () =\u003e void; } | -                                      | Resizable configuration with optional callbacks                                |\n| onMouseEnter       | React.MouseEventHandler\\\u003cHTMLDivElement\\\u003e                                   | -                                      | Trigger when mouse enter drawer panel                                         |\n| onMouseOver        | React.MouseEventHandler\\\u003cHTMLDivElement\\\u003e                                   | -                                      | Trigger when mouse over drawer panel                                          |\n| onMouseLeave       | React.MouseEventHandler\\\u003cHTMLDivElement\\\u003e                                   | -                                      | Trigger when mouse leave drawer panel                                         |\n| onClick            | React.MouseEventHandler\\\u003cHTMLDivElement\\\u003e                                   | -                                      | Trigger when mouse click drawer panel                                         |\n| onKeyDown          | React.MouseEventHandler\\\u003cHTMLDivElement\\\u003e                                   | -                                      | Trigger when mouse keydown on drawer panel                                    |\n| onKeyUp            | React.MouseEventHandler\\\u003cHTMLDivElement\\\u003e                                   | -                                      | Trigger when mouse keyup on drawer panel                                      |\n\n\u003e 2.0 Rename `onMaskClick` -\u003e `onClose`, add `maskClosable`.\n\n## Development\n\n```\nnpm install\nnpm start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-component%2Fdrawer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact-component%2Fdrawer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-component%2Fdrawer/lists"}