BPT

Dialogue

The BptDialogue component provides a modal or non-modal draggable dialogue with customizable Yes/No/Cancel buttons, extensible custom buttons with panel-swap support, and a help icon.

Dialogue Parameters
Button Colors
Current Configuration
📋 [+]
<BptDialogue @bind-Visible="_isOpen"
             Title="Confirm Action"
             OnClose="HandleClose">
    <ChildContent>
        <p>Your dialogue content here.</p>
    </ChildContent>
    <Buttons>
        <BptDialogueButton Text="Settings" Icon="bi bi-gear">
            <PanelContent>Panel content here</PanelContent>
        </BptDialogueButton>
    </Buttons>
</BptDialogue>

@code {
    private bool _isOpen = false;

    private void HandleClose(BptDialogueResult result)
    {
        Console.WriteLine($"Closed: {result.Reason}");
    }
}
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.