{"id":29572207,"url":"https://github.com/soenneker/soenneker.blazor.floating.windows","last_synced_at":"2026-06-17T04:01:10.682Z","repository":{"id":304540475,"uuid":"1019033292","full_name":"soenneker/soenneker.blazor.floating.windows","owner":"soenneker","description":"A Blazor UI element for a drag and drop, overlayed window","archived":false,"fork":false,"pushed_at":"2026-06-11T00:47:42.000Z","size":1133,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-11T02:22:24.824Z","etag":null,"topics":["and","blazor","blazorlibrary","csharp","dotnet","drag","draggable","drop","floating","floatingwindow","windows"],"latest_commit_sha":null,"homepage":"https://soenneker.com","language":"CSS","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/soenneker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","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":"soenneker","thanks_dev":"soenneker"}},"created_at":"2025-07-13T15:38:28.000Z","updated_at":"2026-06-11T00:46:07.000Z","dependencies_parsed_at":"2025-07-13T19:52:08.929Z","dependency_job_id":"f50deba7-fdc9-487c-bd33-c0d2bf74938d","html_url":"https://github.com/soenneker/soenneker.blazor.floating.windows","commit_stats":null,"previous_names":["soenneker/soenneker.blazor.floating.windows"],"tags_count":322,"template":false,"template_full_name":null,"purl":"pkg:github/soenneker/soenneker.blazor.floating.windows","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.blazor.floating.windows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.blazor.floating.windows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.blazor.floating.windows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.blazor.floating.windows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soenneker","download_url":"https://codeload.github.com/soenneker/soenneker.blazor.floating.windows/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.blazor.floating.windows/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34433086,"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-06-17T02:00:05.408Z","response_time":127,"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":["and","blazor","blazorlibrary","csharp","dotnet","drag","draggable","drop","floating","floatingwindow","windows"],"created_at":"2025-07-19T05:00:21.380Z","updated_at":"2026-06-17T04:01:10.665Z","avatar_url":"https://github.com/soenneker.png","language":"CSS","funding_links":["https://github.com/sponsors/soenneker","https://thanks.dev/soenneker"],"categories":[],"sub_categories":[],"readme":"[![](https://img.shields.io/nuget/v/soenneker.blazor.floating.windows.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.blazor.floating.windows/)\n[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.blazor.floating.windows/publish-package.yml?style=for-the-badge)](https://github.com/soenneker/soenneker.blazor.floating.windows/actions/workflows/publish-package.yml)\n[![](https://img.shields.io/nuget/dt/soenneker.blazor.floating.windows.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.blazor.floating.windows/)\n[![](https://img.shields.io/badge/Demo-Live-blueviolet?style=for-the-badge\u0026logo=github)](https://soenneker.github.io/soenneker.blazor.floating.windows/)\n[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.blazor.floating.windows/codeql.yml?label=CodeQL\u0026style=for-the-badge)](https://github.com/soenneker/soenneker.blazor.floating.windows/actions/workflows/codeql.yml)\n\n# \u003cimg src=\"https://user-images.githubusercontent.com/4441470/224455560-91ed3ee7-f510-4041-a8d2-3fc093025112.png\" alt=\"Logo\" width=\"48\"/\u003e Soenneker.Blazor.Floating.Windows\n\n\u003e **Modern, customizable floating windows for Blazor**\n\n---\n\n\n## ? Features\n\n- ?? **Draggable \u0026 Resizable** � Move and resize windows with smooth, modern UX\n- ?? **Fully Customizable** � Colors, fonts, borders, shadows, and more\n- ?? **Custom theming** � Built-in typed support\n- ??? **Multiple Windows** � Manage, stack, and focus with z-index\n- ?? **Responsive** � Works on desktop and mobile\n- ? **Accessible** � ARIA labels, keyboard navigation\n- ? **Event Callbacks** � React to show, hide, drag, resize, and more\n\n---\n\n## ?? Installation\n\n```bash\ndotnet add package Soenneker.Blazor.Floating.Windows\n```\n\n```csharp\n// Program.cs\nusing Soenneker.Blazor.Floating.Windows.Registrars;\nbuilder.Services.AddFloatingWindowAsScoped();\n```\n\n```razor\n// _Imports.razor\n@using Soenneker.Blazor.Floating.Windows\n```\n\n---\n\n## ??? Basic Usage\n\n```razor\n\u003cFloatingWindow Title=\"My Window\" Width=\"400\" Height=\"300\"\u003e\n    \u003cdiv\u003e\n        \u003ch3\u003eHello World!\u003c/h3\u003e\n        \u003cp\u003eThis is a floating window with your content.\u003c/p\u003e\n        \u003cbutton @onclick=\"() =\u003e window?.Close()\"\u003eClose\u003c/button\u003e\n    \u003c/div\u003e\n\u003c/FloatingWindow\u003e\n```\n\n---\n\n## ?? Theming \u0026 Styling\n\n**Built-in themes:**\n```razor\n\u003cFloatingWindow StyleOptions=\"FloatingWindowStyleOptions.DefaultLight\"\u003e...\u003c/FloatingWindow\u003e\n\u003cFloatingWindow StyleOptions=\"FloatingWindowStyleOptions.DefaultDark\"\u003e...\u003c/FloatingWindow\u003e\n\u003cFloatingWindow StyleOptions=\"FloatingWindowStyleOptions.DemoTheme\"\u003e...\u003c/FloatingWindow\u003e\n```\n\n**Custom styling:**\n```razor\n\u003cFloatingWindow StyleOptions=\"new FloatingWindowStyleOptions\n{\n    BackgroundColor = \"#f8f9fa\",\n    BorderColor = \"#dee2e6\",\n    BorderRadius = \"12px\",\n    TitleBarBackgroundColor = \"#007bff\",\n    TitleBarTextColor = \"#ffffff\",\n    CloseButtonTextColor = \"#ffffff\",\n    CloseButtonHoverBackgroundColor = \"rgba(255, 255, 255, 0.2)\",\n    CustomClass = \"my-custom-window\",\n    CustomStyles = new Dictionary\u003cstring, string\u003e\n    {\n        [\"backdrop-filter\"] = \"blur(10px)\",\n        [\"border\"] = \"2px solid #007bff\"\n    }\n}\"\u003e...\u003c/FloatingWindow\u003e\n```\n\n---\n\n## ?? Advanced Example\n\n```razor\n\u003cFloatingWindow @ref=\"myWindow\"\n                Title=\"Advanced Window\"\n                Width=\"500\"\n                Height=\"400\"\n                InitialX=\"100\"\n                InitialY=\"100\"\n                Draggable=\"true\"\n                Resizable=\"true\"\n                ShowCloseButton=\"true\"\n                ShowTitleBar=\"true\"\n                CenterOnShow=\"true\"\n                ConstrainToViewport=\"true\"\n                OnShow=\"OnWindowShow\"\n                OnHide=\"OnWindowHide\"\n                OnDragStart=\"OnDragStart\"\n                OnDragEnd=\"OnDragEnd\"\u003e\n    \u003cdiv class=\"window-content\"\u003e\n        \u003ch3\u003eAdvanced Features\u003c/h3\u003e\n        \u003cp\u003eThis window demonstrates all the available features.\u003c/p\u003e\n        \u003cdiv class=\"controls\"\u003e\n            \u003cbutton @onclick=\"() =\u003e myWindow?.SetPosition(200, 200)\"\u003eMove to (200,200)\u003c/button\u003e\n            \u003cbutton @onclick=\"() =\u003e myWindow?.SetSize(600, 500)\"\u003eResize to 600x500\u003c/button\u003e\n            \u003cbutton @onclick=\"() =\u003e myWindow?.BringToFront()\"\u003eBring to Front\u003c/button\u003e\n        \u003c/div\u003e\n    \u003c/div\u003e\n\u003c/FloatingWindow\u003e\n\n@code {\n    private FloatingWindow? myWindow;\n    private void OnWindowShow() =\u003e Console.WriteLine(\"Window shown!\");\n    private void OnWindowHide() =\u003e Console.WriteLine(\"Window hidden!\");\n    private void OnDragStart() =\u003e Console.WriteLine(\"Dragging started!\");\n    private void OnDragEnd() =\u003e Console.WriteLine(\"Dragging ended!\");\n}\n```\n\n---\n\n## ?? API Overview\n\n### Properties\n| Property | Type | Default | Description |\n|----------|------|---------|-------------|\n| `Title` | `string` | `\"Window\"` | Title bar text |\n| `Width` | `int?` | `400` | Initial width (px) |\n| `Height` | `int?` | `300` | Initial height (px) |\n| `InitialX` | `int?` | `100` | Initial X position |\n| `InitialY` | `int?` | `100` | Initial Y position |\n| `Draggable` | `bool?` | `true` | Enable dragging |\n| `Resizable` | `bool?` | `true` | Enable resizing |\n| `ShowCloseButton` | `bool?` | `true` | Show close button |\n| `ShowTitleBar` | `bool?` | `true` | Show title bar |\n| `StyleOptions` | `FloatingWindowStyleOptions` | `DefaultLight` | Styling config |\n\n### Events\n| Event | Description |\n|-------|-------------|\n| `OnShow` | Window shown |\n| `OnHide` | Window hidden |\n| `OnDragStart` | Dragging started |\n| `OnDragEnd` | Dragging ended |\n\n### Methods\n| Method | Description |\n|--------|-------------|\n| `Show()` | Show window |\n| `Hide()` | Hide window |\n| `Toggle()` | Toggle visibility |\n| `GetPosition()` | Get (x, y) |\n| `SetPosition(x, y)` | Set position |\n| `GetSize()` | Get (width, height) |\n| `SetSize(width, height)` | Set size |\n| `BringToFront()` | Bring window to front |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoenneker%2Fsoenneker.blazor.floating.windows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoenneker%2Fsoenneker.blazor.floating.windows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoenneker%2Fsoenneker.blazor.floating.windows/lists"}