@code { [Inject] public IJSRuntime JsRuntime { get; set; } [Parameter] public RenderFragment Body { get; set; } private string modalDisplay = "none"; public void Open() { modalDisplay = "block"; } public void Close() { modalDisplay = "none"; } }