{"id":49311198,"url":"https://github.com/kumarjitdas/kd-resizable","last_synced_at":"2026-05-02T19:01:46.036Z","repository":{"id":353853052,"uuid":"1221143897","full_name":"KumarjitDas/kd-resizable","owner":"KumarjitDas","description":"Lightweight, accessible React resizable panel component — zero runtime dependencies beyond React.","archived":false,"fork":false,"pushed_at":"2026-04-26T21:43:45.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-27T14:29:47.030Z","etag":null,"topics":["nodejs","react-component","reactjs","typescript","vite"],"latest_commit_sha":null,"homepage":"https://kumarjitdas.github.io/#/projects/kd-resizable","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KumarjitDas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","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":"KumarjitDas","patreon":"kumarjit","custom":["upi://pay?pa=madpkd1999-1@okicici\u0026pn=YourName\u0026cu=INR"]}},"created_at":"2026-04-25T20:10:11.000Z","updated_at":"2026-04-26T21:43:48.000Z","dependencies_parsed_at":"2026-04-26T13:00:31.980Z","dependency_job_id":null,"html_url":"https://github.com/KumarjitDas/kd-resizable","commit_stats":null,"previous_names":["kumarjitdas/kd-resizable"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/KumarjitDas/kd-resizable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KumarjitDas%2Fkd-resizable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KumarjitDas%2Fkd-resizable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KumarjitDas%2Fkd-resizable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KumarjitDas%2Fkd-resizable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KumarjitDas","download_url":"https://codeload.github.com/KumarjitDas/kd-resizable/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KumarjitDas%2Fkd-resizable/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32385943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"last_error":"SSL_read: 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":["nodejs","react-component","reactjs","typescript","vite"],"created_at":"2026-04-26T13:00:23.454Z","updated_at":"2026-04-28T15:00:58.063Z","avatar_url":"https://github.com/KumarjitDas.png","language":"TypeScript","funding_links":["https://github.com/sponsors/KumarjitDas","https://patreon.com/kumarjit","upi://pay?pa=madpkd1999-1@okicici\u0026pn=YourName\u0026cu=INR"],"categories":[],"sub_categories":[],"readme":"# kd-resizable\n\n[![npm version](https://img.shields.io/npm/v/kd-resizable)](https://www.npmjs.com/package/@kumarjitdas/kd-resizable)\n[![bundle size](https://img.shields.io/bundlephobia/minzip/kd-resizable)](https://bundlephobia.com/package/@kumarjitdas/kd-resizable@1.0.0)\n[![license](https://img.shields.io/npm/l/kd-resizable)](./LICENSE.txt)\n\nLightweight, accessible React resizable panel component — zero runtime dependencies beyond React.\n\n**[Website](https://github.com/KumarjitDas/kd-resizable) · [Live Demo](https://kumarjitdas.github.io/kd-resizable) · [npm](https://www.npmjs.com/package/@kumarjitdas/kd-resizable)**\n\n---\n\n## Features\n\n- Horizontal \u0026 vertical splits\n- Nestable groups (e.g. IDE-style three-pane layout)\n- `minSize` / `maxSize` constraints per panel — sizes always sum to 100 %\n- Keyboard accessible — arrow keys resize, correct ARIA roles (`separator`)\n- Dark mode via CSS custom properties, no extra setup\n- ~8 kB minified · ~3 kB gzipped · zero runtime dependencies\n\n## Installation\n\n```sh\nnpm install kd-resizable\n# or\npnpm add kd-resizable\n```\n\n## Usage\n\nImport the components and the stylesheet:\n\n```tsx\nimport {\n  ResizablePanelGroup,\n  ResizablePanel,\n  ResizableHandle,\n} from \"kd-resizable\";\nimport \"kd-resizable/style.css\";\n\nfunction App() {\n  return (\n    \u003cResizablePanelGroup direction=\"horizontal\" style={{ height: \"100vh\" }}\u003e\n      \u003cResizablePanel defaultSize={25} minSize={10}\u003e\n        \u003cSidebar /\u003e\n      \u003c/ResizablePanel\u003e\n      \u003cResizableHandle withHandle /\u003e\n      \u003cResizablePanel defaultSize={75}\u003e\n        \u003cMainContent /\u003e\n      \u003c/ResizablePanel\u003e\n    \u003c/ResizablePanelGroup\u003e\n  );\n}\n```\n\n### Nested groups\n\n```tsx\n\u003cResizablePanelGroup direction=\"horizontal\" style={{ height: \"100vh\" }}\u003e\n  \u003cResizablePanel defaultSize={20} minSize={10}\u003e\n    \u003cExplorer /\u003e\n  \u003c/ResizablePanel\u003e\n  \u003cResizableHandle withHandle /\u003e\n  \u003cResizablePanel defaultSize={80}\u003e\n    \u003cResizablePanelGroup direction=\"vertical\"\u003e\n      \u003cResizablePanel defaultSize={70}\u003e\n        \u003cEditor /\u003e\n      \u003c/ResizablePanel\u003e\n      \u003cResizableHandle withHandle /\u003e\n      \u003cResizablePanel defaultSize={30} minSize={10}\u003e\n        \u003cTerminal /\u003e\n      \u003c/ResizablePanel\u003e\n    \u003c/ResizablePanelGroup\u003e\n  \u003c/ResizablePanel\u003e\n\u003c/ResizablePanelGroup\u003e\n```\n\n## API\n\n### `ResizablePanelGroup`\n\n| Prop        | Type                         | Default        | Description                                            |\n| ----------- | ---------------------------- | -------------- | ------------------------------------------------------ |\n| `direction` | `'horizontal' \\| 'vertical'` | `'horizontal'` | Split axis                                             |\n| `onLayout`  | `(sizes: number[]) =\u003e void`  | —              | Fires on every resize with the current panel sizes (%) |\n| `className` | `string`                     | —              | Added to the container `\u003cdiv\u003e`                         |\n| `style`     | `CSSProperties`              | —              | Inline style on the container `\u003cdiv\u003e`                  |\n\n### `ResizablePanel`\n\n| Prop          | Type            | Default            | Description                       |\n| ------------- | --------------- | ------------------ | --------------------------------- |\n| `defaultSize` | `number`        | evenly distributed | Initial size in `%`               |\n| `minSize`     | `number`        | `0`                | Minimum size in `%`               |\n| `maxSize`     | `number`        | `100`              | Maximum size in `%`               |\n| `className`   | `string`        | —                  | Added to the panel `\u003cdiv\u003e`        |\n| `style`       | `CSSProperties` | —                  | Inline style on the panel `\u003cdiv\u003e` |\n\n### `ResizableHandle`\n\n| Prop         | Type            | Default | Description                                      |\n| ------------ | --------------- | ------- | ------------------------------------------------ |\n| `withHandle` | `boolean`       | `false` | Show the grip badge in the centre of the divider |\n| `className`  | `string`        | —       | Added to the handle `\u003cdiv\u003e`                      |\n| `style`      | `CSSProperties` | —       | Inline style on the handle `\u003cdiv\u003e`               |\n\n## Keyboard support\n\nFocus any handle (Tab), then use:\n\n| Key       | Action                    |\n| --------- | ------------------------- |\n| `←` / `→` | Resize (horizontal group) |\n| `↑` / `↓` | Resize (vertical group)   |\n\nEach key press moves the split by 1 %, clamped by `minSize` / `maxSize`.\n\n## Theming\n\nAll visual properties are CSS custom properties. Set them on `.kd-resizable-handle`\nor any ancestor to scope overrides:\n\n```css\n.kd-resizable-handle {\n  --kd-handle-size: 1px; /* divider thickness */\n  --kd-handle-bg: #e2e8f0;\n  --kd-handle-hover-bg: #94a3b8;\n  --kd-focus-ring: #3b82f6;\n  --kd-grip-bg: #fff;\n  --kd-grip-border: #e2e8f0;\n  --kd-grip-color: #94a3b8;\n  --kd-grip-hover-border: #94a3b8;\n  --kd-grip-hover-color: #475569;\n}\n```\n\nDark mode overrides are included by default via `@media (prefers-color-scheme: dark)`.\n\n## Browser support\n\nAll browsers that support the [Pointer Events API](https://developer.mozilla.org/en-US/docs/Web/API/Pointer_events) (Chrome 55+, Firefox 59+, Safari 13+, Edge 79+).\n\n## License\n\n[BSD-3-Clause](https://img.shields.io/badge/license-BSD--3--Clause-blue.svg) © [Kumarjit Das](https://github.com/KumarjitDas)\n\n## Contact\n\n- Twitter: [@kumarjitdas1902](https://x.com/kumarjitdas1902)\n- LinkedIn: [Kumarjit Das](https://www.linkedin.com/in/kumarjit-das)\n- E-Mail: [kumarjitdas1999@gmail.com](mailto:kumarjitdas1999+github@gmail.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkumarjitdas%2Fkd-resizable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkumarjitdas%2Fkd-resizable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkumarjitdas%2Fkd-resizable/lists"}