{"id":13436263,"url":"https://github.com/alexkuz/react-dock","last_synced_at":"2025-03-18T20:31:08.465Z","repository":{"id":57137285,"uuid":"41982209","full_name":"alexkuz/react-dock","owner":"alexkuz","description":"Resizable dockable react component","archived":true,"fork":false,"pushed_at":"2020-08-17T17:10:20.000Z","size":319,"stargazers_count":548,"open_issues_count":20,"forks_count":76,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-15T07:56:05.563Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://alexkuz.github.io/react-dock/demo/","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/alexkuz.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":"2015-09-06T01:38:14.000Z","updated_at":"2025-02-11T21:05:06.000Z","dependencies_parsed_at":"2022-09-01T03:01:22.457Z","dependency_job_id":null,"html_url":"https://github.com/alexkuz/react-dock","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/alexkuz%2Freact-dock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexkuz%2Freact-dock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexkuz%2Freact-dock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexkuz%2Freact-dock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexkuz","download_url":"https://codeload.github.com/alexkuz/react-dock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244301379,"owners_count":20430931,"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:46.016Z","updated_at":"2025-03-18T20:31:08.049Z","avatar_url":"https://github.com/alexkuz.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized","JavaScript","UI Components","Demos","\u003csummary\u003eUI Components\u003c/summary\u003e"],"sub_categories":["Uncategorized","Overlay","JBoss Data Virtualization"],"readme":"\u003ctable\u003e\u003ctr\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e\u003ch3\u003e🏚\u003c/h3\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eThis package was merged into \u003ca href=\"https://github.com/reduxjs/redux-devtools\"\u003e\u003ccode\u003eredux-devtools\u003c/code\u003e monorepo\u003c/pre\u003e\u003c/a\u003e. Please refer to that repository for the latest updates, issues and pull requests.\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\n\n---\n\n# react-dock\n\nResizable dockable react component.\n\n#### Demo\n\n[http://alexkuz.github.io/react-dock/demo/](http://alexkuz.github.io/react-dock/demo/)\n\n#### Install\n\n```\n$ npm i -S react-dock\n```\n\n#### Example\n\n```jsx\nrender() {\n  return (\n    \u003cDock position='right' isVisible={this.state.isVisible}\u003e\n      {/* you can pass a function as a child here */}\n      \u003cdiv onClick={() =\u003e this.setState({ isVisible: !this.state.isVisible })}\u003eX\u003c/div\u003e\n    \u003c/Dock\u003e\n  );\n}\n```\n\n#### Dock Props\n\n| Prop Name | Description |\n|-----------|-------------|\n| position | Side to dock (`left`, `right`, `top` or `bottom`). Default is `left`. |\n| fluid | If `true`, resize dock proportionally on window resize. |\n| size | Size of dock panel (width or height, depending on `position`). If this prop is set, `Dock` is considered as a controlled component, so you need to use `onSizeChange` to track dock resizing. Value is a fraction of window width/height, if `fluid` is true, or pixels otherwise |\n| defaultSize | Default size of dock panel (used for uncontrolled `Dock` component) |\n| isVisible | If `true`, dock is visible |\n| dimMode | If `none` - content is not dimmed, if `transparent` - pointer events are disabled (so you can click through it), if `opaque` - click on dim area closes the dock. Default is `opaque` |\n| duration | Animation duration. Should be synced with transition animation in style properties |\n| dimStyle | Style for dim area |\n| dockStyle | Style for dock |\n| zIndex | Z-index for wrapper |\n| onVisibleChange | Fires when `Dock` wants to change `isVisible` (when opaque dim is clicked, in particular) |\n| onSizeChange | Fires when `Dock` wants to change `size` |\n| children | Dock content - react elements or function that returns an element. Function receives an object with these state values: `{ position, isResizing, size, isVisible }`  |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexkuz%2Freact-dock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexkuz%2Freact-dock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexkuz%2Freact-dock/lists"}