{"id":21014019,"url":"https://github.com/brianlparker/blazordialogs","last_synced_at":"2026-03-19T18:27:49.687Z","repository":{"id":58465193,"uuid":"493169379","full_name":"BrianLParker/BlazorDialogs","owner":"BrianLParker","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-01T20:35:07.000Z","size":7399,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T16:23:04.889Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BrianLParker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-05-17T08:49:52.000Z","updated_at":"2022-09-02T18:55:40.000Z","dependencies_parsed_at":"2024-11-19T09:47:49.833Z","dependency_job_id":"42357bd4-a5ad-45a5-9ac8-c1ee1562c2cf","html_url":"https://github.com/BrianLParker/BlazorDialogs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BrianLParker/BlazorDialogs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianLParker%2FBlazorDialogs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianLParker%2FBlazorDialogs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianLParker%2FBlazorDialogs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianLParker%2FBlazorDialogs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BrianLParker","download_url":"https://codeload.github.com/BrianLParker/BlazorDialogs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianLParker%2FBlazorDialogs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29845823,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T22:37:40.667Z","status":"ssl_error","status_checked_at":"2026-02-25T22:37:25.960Z","response_time":61,"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":[],"created_at":"2024-11-19T09:44:47.842Z","updated_at":"2026-02-26T00:38:34.098Z","avatar_url":"https://github.com/BrianLParker.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blazor Dialogs\n\nThis library gives the html `\u003cdialog\u003e` element some Blazor love. \n\n### Add the nuget package.\n\n### Import the library\n**_Imports.razor**\n```\n@using BlazorDialogs\n```\n### Usage\n\n```\n\u003cbutton @onclick=@ShowDialogAsync\u003eOpen Dialog\u003c/button\u003e\n \n\u003cDialog @ref=@dialog DialogClosed=@DialogClosedAsync \u003e\n\tYOUR CONTENT\n\u003c/Dialog\u003e\n\n@code {\n    private Dialog dialog;\n\n    async Task ShowDialogAsync() =\u003e await dialog.ShowDialogAsync();\n\n    async Task DialogClosedAsync() { /* process content */ }\n}\n```\n\n### How to open a dialog on a components initialization (pages are components).\n\nUse your hosting components `OnAfterRenderAsync` method to show the dialog. This is required as the `@ref` is not initialized before this.\n```\nprotected override async Task OnAfterRenderAsync(bool firstRender)\n{\n    if(firstRender is true)\n    {\n        await dialog.ShowDialogAsync();\n        StateHasChanged();\n    }\n    await base.OnAfterRenderAsync(firstRender);\n}\n```\nThe component captures attributes and applies them to the underlying `\u003cdialog\u003e` element.\nIncluded in the component are the following css classes.\n\n\u003cp\u003eAvailable options:\u003c/p\u003e\n \n| class name | effect |\n| -- | -- |\n| \u003ccode\u003ebd-back-blur3\u003c/code\u003e | blurs content behind the dialog by 3 pixels |\n| \u003ccode\u003ebd-back-blur5\u003c/code\u003e | blurs content behind the dialog by 5 pixels |\n| \u003ccode\u003ebd-back-blur10\u003c/code\u003e | blurs content behind the dialog by 10 pixels |\n| \u003ccode\u003ebd-backdrop-blur3\u003c/code\u003e | blurs content behind the backdrop of the dialog by 3 pixels |\n| \u003ccode\u003ebd-backdrop-blur5\u003c/code\u003e | blurs content behind the backdrop of the dialog by 5 pixels |\n| \u003ccode\u003ebd-backdrop-blur10\u003c/code\u003e | blurs content behind the backdrop of the dialog by 10 pixels |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianlparker%2Fblazordialogs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianlparker%2Fblazordialogs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianlparker%2Fblazordialogs/lists"}