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.
<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}");
}
}