{"id":36934647,"url":"https://github.com/gfazioli/mantine-window","last_synced_at":"2026-07-03T08:01:07.179Z","repository":{"id":325917295,"uuid":"1101408916","full_name":"gfazioli/mantine-window","owner":"gfazioli","description":"A Mantine 9 draggable, resizable floating window component with persistent state, customizable controls position/order, optional ScrollArea, WindowGroup compound component, and layout presets.","archived":false,"fork":false,"pushed_at":"2026-06-23T05:51:54.000Z","size":14837,"stargazers_count":14,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-06-23T07:23:41.355Z","etag":null,"topics":["component","draggable","extension","floating-window","mantine","mantine-ui","mantine-v9","react","react-component","resizable","typescript","window"],"latest_commit_sha":null,"homepage":"https://gfazioli.github.io/mantine-window","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":"2025-11-21T16:22:35.000Z","updated_at":"2026-06-23T05:51:43.000Z","dependencies_parsed_at":"2026-06-12T10:01:00.723Z","dependency_job_id":null,"html_url":"https://github.com/gfazioli/mantine-window","commit_stats":null,"previous_names":["gfazioli/mantine-window"],"tags_count":33,"template":false,"template_full_name":"gfazioli/mantine-json-tree","purl":"pkg:github/gfazioli/mantine-window","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfazioli%2Fmantine-window","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfazioli%2Fmantine-window/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfazioli%2Fmantine-window/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfazioli%2Fmantine-window/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gfazioli","download_url":"https://codeload.github.com/gfazioli/mantine-window/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfazioli%2Fmantine-window/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35077515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-03T02:00:05.635Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","draggable","extension","floating-window","mantine","mantine-ui","mantine-v9","react","react-component","resizable","typescript","window"],"created_at":"2026-01-13T09:52:26.141Z","updated_at":"2026-07-03T08:01:07.151Z","avatar_url":"https://github.com/gfazioli.png","language":"TypeScript","funding_links":["https://github.com/sponsors/gfazioli","https://github.com/sponsors/gfazioli?o=esc"],"categories":[],"sub_categories":[],"readme":"# Mantine Window Component\n\n\u003cimg alt=\"Mantine Window\" src=\"https://github.com/gfazioli/mantine-window/blob/master/logo.jpeg\" /\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \n  [![NPM version](https://img.shields.io/npm/v/%40gfazioli%2Fmantine-window?style=for-the-badge)](https://www.npmjs.com/package/@gfazioli/mantine-window)\n  [![NPM Downloads](https://img.shields.io/npm/dm/%40gfazioli%2Fmantine-window?style=for-the-badge)](https://www.npmjs.com/package/@gfazioli/mantine-window)\n  [![NPM Downloads](https://img.shields.io/npm/dy/%40gfazioli%2Fmantine-window?style=for-the-badge\u0026label=%20\u0026color=f90)](https://www.npmjs.com/package/@gfazioli/mantine-window)\n  ![NPM License](https://img.shields.io/npm/l/%40gfazioli%2Fmantine-window?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\nThis component is created on top of the [Mantine](https://mantine.dev/) library.\nIt requires **Mantine 9.x** and **React 19**.\n\n[Mantine Window](https://gfazioli.github.io/mantine-window/) is a versatile UI container that brings a familiar desktop‑like window experience to React applications built with Mantine.\n\n## Features\n\n- Draggable and resizable floating windows with 8-direction resize handles\n- Portal or container-relative positioning (`withinPortal`)\n- Controlled and uncontrolled position/size with mixed unit support (px, vw/vh, %)\n- Responsive values via Mantine breakpoints for all dimension props\n- Persistent state via localStorage (position, size, collapse state)\n- Configurable drag boundaries to constrain movement\n- Min/max size constraints with multi-unit support\n- Collapsible content with double-click header toggle\n- Z-index management with bring-to-front on interaction\n- `Window.Group` compound component for coordinated multi-window management\n- Layout presets: snap, tile, columns, rows, fill\n- Full Mantine Styles API support with fine-grained classNames\n- SSR-safe with hydration-compatible viewport unit resolution\n- `onPositionChange` and `onSizeChange` callbacks\n- `withScrollArea` prop to disable the internal ScrollArea wrapper\n- `controlsPosition` prop for macOS-style (left) or Windows-style (right) button placement\n- `controlsOrder` prop for custom button ordering (close, collapse, tools)\n\n\u003e [!note]\n\u003e\n\u003e → [Demo and Documentation](https://gfazioli.github.io/mantine-window/) → [Youtube Video](https://www.youtube.com/playlist?list=PL85tTROKkZrWyqCcmNCdWajpx05-cTal4) → [More Mantine Components](https://mantine-extensions.vercel.app/)\n\n## Installation\n\n```sh\nnpm install @gfazioli/mantine-window\n```\nor \n\n```sh\nyarn add @gfazioli/mantine-window\n```\n\nAfter installation import package styles at the root of your application:\n\n```tsx\nimport '@gfazioli/mantine-window/styles.css';\n```\n\n## Usage\n\n```tsx\nimport { Window } from '@gfazioli/mantine-window';\nimport { Title } from '@mantine/core';\n\nfunction Demo() {\n  return (\n    \u003cWindow title=\"Hello World\" opened defaultX={50} defaultY={50} defaultWidth={400} defaultHeight={300}\u003e\n      \u003cTitle order={4}\u003eThis is a window\u003c/Title\u003e\n    \u003c/Window\u003e\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/7f80b2c0-90b1-442f-82c8-fddb75cca14e\n\n---\n[![Star History Chart](https://api.star-history.com/svg?repos=gfazioli/mantine-window\u0026type=Timeline)](https://www.star-history.com/#gfazioli/mantine-window\u0026Timeline)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgfazioli%2Fmantine-window","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgfazioli%2Fmantine-window","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgfazioli%2Fmantine-window/lists"}