@code { [Parameter] public string Title { get; set; } = null!; [Parameter] public RenderFragment ChildContent { get; set; } = null!; [Parameter] public bool Active { get; set; } [Parameter] public EventCallback OnClose { get; set; } public void OnDialogClose() { this.Active = false; this.OnClose.InvokeAsync(); } }