{"id":15509235,"url":"https://github.com/gfazioli/mantine-split-pane","last_synced_at":"2026-04-04T22:05:06.486Z","repository":{"id":224946928,"uuid":"761778869","full_name":"gfazioli/mantine-split-pane","owner":"gfazioli","description":"A Mantine UI Library Extension component that manages split panes allows users to divide and resize content areas within a layout efficiently.","archived":false,"fork":false,"pushed_at":"2026-04-01T13:52:43.000Z","size":19185,"stargazers_count":70,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-01T15:29:54.941Z","etag":null,"topics":["component","mantine","mantine-ui","mantine-v7","nextjs","pane","react","reactjs","split","splitpane","typescript","ui"],"latest_commit_sha":null,"homepage":"https://gfazioli.github.io/mantine-split-pane/","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/gfazioli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":["gfazioli"]}},"created_at":"2024-02-22T13:29:59.000Z","updated_at":"2026-04-01T13:52:04.000Z","dependencies_parsed_at":"2024-10-24T13:14:47.161Z","dependency_job_id":"7696ecb8-7743-4e71-b3a7-f3e4f2038624","html_url":"https://github.com/gfazioli/mantine-split-pane","commit_stats":{"total_commits":52,"total_committers":3,"mean_commits":"17.333333333333332","dds":0.09615384615384615,"last_synced_commit":"df4c092aeb1aba762dc7c203214c6900a85a3968"},"previous_names":["gfazioli/mantine-split-pane"],"tags_count":65,"template":false,"template_full_name":"gfazioli/mantine-flip","purl":"pkg:github/gfazioli/mantine-split-pane","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfazioli%2Fmantine-split-pane","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfazioli%2Fmantine-split-pane/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfazioli%2Fmantine-split-pane/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfazioli%2Fmantine-split-pane/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gfazioli","download_url":"https://codeload.github.com/gfazioli/mantine-split-pane/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfazioli%2Fmantine-split-pane/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31416447,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"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":["component","mantine","mantine-ui","mantine-v7","nextjs","pane","react","reactjs","split","splitpane","typescript","ui"],"created_at":"2024-10-02T09:41:46.283Z","updated_at":"2026-04-04T22:05:06.473Z","avatar_url":"https://github.com/gfazioli.png","language":"TypeScript","funding_links":["https://github.com/sponsors/gfazioli","https://github.com/sponsors/gfazioli?o=esc"],"categories":["TypeScript"],"sub_categories":[],"readme":"# Mantine Split Pane Component\n\n\u003cimg alt=\"Mantine Split Pane\" src=\"https://github.com/gfazioli/mantine-split-pane/blob/master/logo.jpeg\" /\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n  [![NPM version](https://img.shields.io/npm/v/%40gfazioli%2Fmantine-split-pane?style=for-the-badge)](https://www.npmjs.com/package/@gfazioli/mantine-split-pane)\n  [![NPM Downloads](https://img.shields.io/npm/dm/%40gfazioli%2Fmantine-split-pane?style=for-the-badge)](https://www.npmjs.com/package/@gfazioli/mantine-split-pane)\n  [![NPM Downloads](https://img.shields.io/npm/dy/%40gfazioli%2Fmantine-split-pane?style=for-the-badge\u0026label=%20\u0026color=f90)](https://www.npmjs.com/package/@gfazioli/mantine-split-pane)\n  ![NPM License](https://img.shields.io/npm/l/%40gfazioli%2Fmantine-split-pane?style=for-the-badge)\n\n---\n\n[\u003ckbd\u003e \u003cbr/\u003e ❤️ If this component has been useful to you or your team, please consider becoming a sponsor \u003cbr/\u003e \u003c/kbd\u003e](https://github.com/sponsors/gfazioli?o=esc)\n\n\u003c/div\u003e\n\n## Overview\n\nA Mantine 9 React component for resizable split pane layouts with 7 resizer variants, context-based prop inheritance, responsive orientation, and dynamic pane generation.\n\nThis component is created on top of the [Mantine](https://mantine.dev/) library.\nIt requires **Mantine 9.x** and **React 19**.\n\n\u003e [!note]\n\u003e\n\u003e → [Demo and Documentation](https://gfazioli.github.io/mantine-split-pane/) → [Youtube Video](https://www.youtube.com/playlist?list=PL85tTROKkZrWyqCcmNCdWajpx05-cTal4) → [More Mantine Components](https://mantine-extensions.vercel.app/)\n\n## Features\n\n- Separate `Split.Pane` (content) and `Split.Resizer` (drag handle) architecture\n- 7 resizer variants: `default`, `filled`, `outline`, `transparent`, `gradient`, `dotted`, `dashed`\n- Initial sizes in pixels or percentages with min/max constraints\n- `grow` property to let specific panes expand to fill available space\n- Horizontal and vertical orientation, including responsive breakpoints\n- Context-based prop inheritance: resizer props set on `Split` cascade to all children\n- Per-resizer overrides for full control\n- Snap points for common pane sizes during drag and keyboard resizing\n- `autoResizers` mode to automatically insert resizers between panes\n- `Split.Dynamic` helper to generate panes from a configuration array\n- Resize lifecycle events (`onResizeStart`, `onResizing`, `onResizeEnd`) on both pane and resizer\n- Keyboard accessible: focusable resizer with configurable `step` and `shiftStep`\n- Container resize tracking with drag ratio preservation\n\n## Installation\n\n```sh\nnpm install @gfazioli/mantine-split-pane\n```\nor\n\n```sh\nyarn add @gfazioli/mantine-split-pane\n```\n\nAfter installation import package styles at the root of your application:\n\n```tsx\nimport '@gfazioli/mantine-split-pane/styles.css';\n```\n\n## Usage\n\n```tsx\nimport { Split } from '@gfazioli/mantine-split-pane';\nimport { Paper } from '@mantine/core';\n\nfunction Demo() {\n  return (\n    \u003cSplit\u003e\n      \u003cSplit.Pane\u003e\n        \u003cPaper withBorder w=\"100%\" mih=\"100%\"\u003e\n          \u003ch1\u003ePane 1\u003c/h1\u003e\n        \u003c/Paper\u003e\n      \u003c/Split.Pane\u003e\n\n      \u003cSplit.Resizer /\u003e\n\n      \u003cSplit.Pane\u003e\n        \u003cPaper withBorder\u003e\n          \u003ch1\u003ePane 2\u003c/h1\u003e\n        \u003c/Paper\u003e\n      \u003c/Split.Pane\u003e\n    \u003c/Split\u003e\n  );\n}\n```\n\n### Auto Resizers\n\nUse the `autoResizers` prop to automatically insert resizers between panes:\n\n```tsx\nimport { Split } from '@gfazioli/mantine-split-pane';\nimport { Paper } from '@mantine/core';\n\nfunction Demo() {\n  return (\n    \u003cSplit autoResizers\u003e\n      \u003cSplit.Pane\u003e\n        \u003cPaper withBorder w=\"100%\" mih=\"100%\"\u003e\n          \u003ch1\u003ePane 1\u003c/h1\u003e\n        \u003c/Paper\u003e\n      \u003c/Split.Pane\u003e\n\n      \u003cSplit.Pane\u003e\n        \u003cPaper withBorder\u003e\n          \u003ch1\u003ePane 2\u003c/h1\u003e\n        \u003c/Paper\u003e\n      \u003c/Split.Pane\u003e\n\n      \u003cSplit.Pane\u003e\n        \u003cPaper withBorder\u003e\n          \u003ch1\u003ePane 3\u003c/h1\u003e\n        \u003c/Paper\u003e\n      \u003c/Split.Pane\u003e\n    \u003c/Split\u003e\n  );\n}\n```\n\n### Snap Points\n\nUse `snapPoints` and `snapTolerance` to snap a resizer to common pane sizes in pixels while dragging or using the keyboard:\n\n```tsx\nimport { Split } from '@gfazioli/mantine-split-pane';\nimport { Paper } from '@mantine/core';\n\nfunction Demo() {\n  return (\n    \u003cSplit autoResizers snapPoints={[200, 400, 600]} snapTolerance={20}\u003e\n      \u003cSplit.Pane initialWidth={240}\u003e\n        \u003cPaper withBorder w=\"100%\" mih=\"100%\"\u003e\n          \u003ch1\u003ePane 1\u003c/h1\u003e\n        \u003c/Paper\u003e\n      \u003c/Split.Pane\u003e\n\n      \u003cSplit.Pane initialWidth={320}\u003e\n        \u003cPaper withBorder w=\"100%\" mih=\"100%\"\u003e\n          \u003ch1\u003ePane 2\u003c/h1\u003e\n        \u003c/Paper\u003e\n      \u003c/Split.Pane\u003e\n\n      \u003cSplit.Pane grow\u003e\n        \u003cPaper withBorder w=\"100%\" mih=\"100%\"\u003e\n          \u003ch1\u003ePane 3\u003c/h1\u003e\n        \u003c/Paper\u003e\n      \u003c/Split.Pane\u003e\n    \u003c/Split\u003e\n  );\n}\n```\n\n`snapPoints` and `snapTolerance` are also available on `Split.Resizer` for per-divider overrides. With `autoResizers`, the generated resizers inherit these values from `Split`.\n\n### Dynamic Panes\n\nYou can also use `Split.Dynamic` to create panes from a configuration array:\n\n```tsx\nimport { Split, PaneConfig } from '@gfazioli/mantine-split-pane';\nimport { Paper } from '@mantine/core';\n\nfunction Demo() {\n  const panes: PaneConfig[] = [\n    {\n      id: 'sidebar',\n      initialWidth: 200,\n      minWidth: 150,\n      content: (\n        \u003cPaper withBorder w=\"100%\" h=\"100%\"\u003e\n          \u003ch1\u003eSidebar\u003c/h1\u003e\n        \u003c/Paper\u003e\n      ),\n    },\n    {\n      id: 'main',\n      grow: true,\n      content: (\n        \u003cPaper withBorder w=\"100%\" h=\"100%\"\u003e\n          \u003ch1\u003eMain Content\u003c/h1\u003e\n        \u003c/Paper\u003e\n      ),\n    },\n  ];\n\n  return (\n    \u003cSplit\u003e\n      {Split.Dynamic({ panes })}\n    \u003c/Split\u003e\n  );\n}\n```\n\n## Sponsor\n\n\u003cdiv align=\"center\"\u003e\n\n[\u003ckbd\u003e \u003cbr/\u003e ❤️ If this component has been useful to you or your team, please consider becoming a sponsor \u003cbr/\u003e \u003c/kbd\u003e](https://github.com/sponsors/gfazioli?o=esc)\n\n\u003c/div\u003e\n\nYour support helps me:\n\n- Keep the project actively maintained with timely bug fixes and security updates\t\n- Add new features, improve performance, and refine the developer experience\t\n- Expand test coverage and documentation for smoother adoption\t\n- Ensure long-term sustainability without relying on ad hoc free time\t\n- Prioritize community requests and roadmap items that matter most\n\nOpen source thrives when those who benefit can give back—even a small monthly contribution makes a real difference. Sponsorships help cover maintenance time, infrastructure, and the countless invisible tasks that keep a project healthy.\n\nYour help truly matters.\n\n💚 [Become a sponsor](https://github.com/sponsors/gfazioli?o=esc) today and help me keep this project reliable, up-to-date, and growing for everyone.\n\n---\nhttps://github.com/user-attachments/assets/2e45af2b-60c7-4cb3-9b9a-6cf0e710af1c\n\n---\n[![Star History Chart](https://api.star-history.com/svg?repos=gfazioli/mantine-split-pane\u0026type=Timeline)](https://www.star-history.com/#gfazioli/mantine-split-pane\u0026Timeline)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgfazioli%2Fmantine-split-pane","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgfazioli%2Fmantine-split-pane","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgfazioli%2Fmantine-split-pane/lists"}