@page "/"

<h1>Hello, world!</h1>

Welcome to your new app.

<Modal @ref="modal" title="Full screen" Fullscreen="ModalFullscreen.Always">
    <BodyTemplate>...</BodyTemplate>
</Modal>

<Button Color="ButtonColor.Primary" @onclick="() => modal.ShowAsync()">Full screen</Button>

@code {
    private Modal modal = default!;
}