{"id":25871716,"url":"https://github.com/soenneker/soenneker.maui.blazor.bridge","last_synced_at":"2026-05-22T00:11:20.569Z","repository":{"id":280067289,"uuid":"940888447","full_name":"soenneker/soenneker.maui.blazor.bridge","owner":"soenneker","description":"Seamlessly connects MAUI and Blazor, enabling smooth integration of native components into Blazor","archived":false,"fork":false,"pushed_at":"2026-05-08T20:30:49.000Z","size":1250,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-08T22:35:06.475Z","etag":null,"topics":["blazor","bridge","callback","csharp","dotnet","interop","js","jsruntime","maui","mauiblazorbridge","mauilibrary","razor"],"latest_commit_sha":null,"homepage":"https://soenneker.com","language":"HTML","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-03-01T01:51:00.000Z","updated_at":"2026-05-08T20:30:53.000Z","dependencies_parsed_at":"2026-03-09T23:01:34.225Z","dependency_job_id":null,"html_url":"https://github.com/soenneker/soenneker.maui.blazor.bridge","commit_stats":null,"previous_names":["soenneker/soenneker.maui.blazor.bridge"],"tags_count":344,"template":false,"template_full_name":null,"purl":"pkg:github/soenneker/soenneker.maui.blazor.bridge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.maui.blazor.bridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.maui.blazor.bridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.maui.blazor.bridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.maui.blazor.bridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soenneker","download_url":"https://codeload.github.com/soenneker/soenneker.maui.blazor.bridge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.maui.blazor.bridge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33009919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":["blazor","bridge","callback","csharp","dotnet","interop","js","jsruntime","maui","mauiblazorbridge","mauilibrary","razor"],"created_at":"2025-03-02T07:23:27.612Z","updated_at":"2026-05-14T04:01:08.720Z","avatar_url":"https://github.com/soenneker.png","language":"HTML","funding_links":["https://github.com/sponsors/soenneker","https://thanks.dev/soenneker"],"categories":[],"sub_categories":[],"readme":"# ![](https://user-images.githubusercontent.com/4441470/224455560-91ed3ee7-f510-4041-a8d2-3fc093025112.png) Soenneker.Maui.Blazor.Bridge\n[![](https://img.shields.io/nuget/v/soenneker.maui.blazor.bridge.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.maui.blazor.bridge/)\n[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.maui.blazor.bridge/publish-package.yml?style=for-the-badge)](https://github.com/soenneker/soenneker.maui.blazor.bridge/actions/workflows/publish-package.yml)\n[![](https://img.shields.io/nuget/dt/soenneker.maui.blazor.bridge.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.maui.blazor.bridge/)\n[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.maui.blazor.bridge/codeql.yml?label=CodeQL\u0026style=for-the-badge)](https://github.com/soenneker/soenneker.maui.blazor.bridge/actions/workflows/codeql.yml)\n\n### Effortlessly integrate MAUI components within BlazorWebView, enabling seamless interaction between Blazor and native MAUI UI elements.\n\n\n---\n\n## Features  \n\n- Embed MAUI components directly inside **BlazorWebView** like HTML elements.  \n- Maintain a structured overlay system for native elements.  \n- Provides **typed** and **generic** bridges for flexible component integration.  \n\n---\n\n## Installation  \n\nInstall the package via NuGet:\n\n```sh\ndotnet add package Soenneker.Maui.Blazor.Bridge\n```\n\nRegister the interop in `CreateMauiApp`:\n\n```csharp\npublic static MauiApp CreateMauiApp()\n{\n    var builder = MauiApp.CreateBuilder();\n    builder.Services.AddMauiBlazorBridgeAsScoped();\n}\n```\n\n---\n\n## Layout Setup  \n\nTo integrate MAUI components within BlazorWebView, modify your `MainPage.xaml`.  \nWrap the **BlazorWebView** inside a `Grid`, and include an **AbsoluteLayout** (`OverlayContainer`) to host native elements:\n\n```xml\n\u003cGrid\u003e\n    \u003c!-- Blazor WebView --\u003e\n    \u003cBlazorWebView x:Name=\"blazorWebView\"\n                   HostPage=\"wwwroot/index.html\"\u003e\n        \u003cBlazorWebView.RootComponents\u003e\n            \u003cRootComponent Selector=\"#app\" ComponentType=\"{x:Type local:Routes}\" /\u003e\n        \u003c/BlazorWebView.RootComponents\u003e\n    \u003c/BlazorWebView\u003e\n\n    \u003c!-- Overlay for native MAUI components --\u003e\n    \u003cAbsoluteLayout x:Name=\"OverlayContainer\" BackgroundColor=\"Transparent\" InputTransparent=\"True\" /\u003e\n\u003c/Grid\u003e\n```\n\nThis setup ensures that MAUI-native elements overlay correctly within your BlazorWebView.\n\n---\n\n## Usage  \n\nTo bridge MAUI elements into Blazor, use either:  \n\n- **`MauiBlazorTypedBridge\u003cT\u003e`** (Typed binding)\n- **`MauiBlazorGenericBridge`** (Generic binding)\n\n### Example: Embedding a `MauiLabel` in Blazor  \n\n```razor\n@page \"/\"\n\n@implements IAsyncDisposable\n\n\u003cMauiBlazorTypedBridge @ref=\"_bridge\" TComponent=\"MauiLabel\" Component=\"_label\"\u003e\u003c/MauiBlazorTypedBridge\u003e\n\n@code {\n    MauiLabel? _label;\n    MauiBlazorTypedBridge\u003cMauiLabel\u003e? _bridge;\n\n    protected override void OnInitialized()\n    {\n        _label = new MauiLabel \n        { \n            Text = \"This is a MAUI Label\", \n            BackgroundColor = Colors.Transparent, \n            TextColor = Colors.Black \n        };\n    }\n\n    public async ValueTask DisposeAsync()\n    {\n        if (_bridge != null)\n            await _bridge.DisposeAsync();\n    }\n}\n```\n\nThis example adds a **MauiLabel** component inside a Blazor page, allowing it to function within the BlazorWebView.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoenneker%2Fsoenneker.maui.blazor.bridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoenneker%2Fsoenneker.maui.blazor.bridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoenneker%2Fsoenneker.maui.blazor.bridge/lists"}