The Blazor Dialog is a user interface (UI) component that displays critical information, errors, warnings, and questions to users, as well as confirms decisions and collects input from the users. The component has a rich set of built-in features such as action buttons, positioning, animation, dragging, resizing, templating, and more with mobile dialog support.
The two types of dialogs are modal and non-modal (modeless), based on user interactions:
The Blazor Dialog component provides built-in support to perform actions using buttons, which define necessary callback functions to handle user input.
The localization library allows you to localize the default text content. In the Dialog component, the close button’s tooltip text alone will be localized based on the specified culture.
Users can position a Blazor dialog wherever they want on a page. It is easy to configure this through built-in positions or any custom axis value (for example, top left, bottom right, top right, bottom left, 100 75, etc.).
The Blazor modal dialog can be moved anywhere in a page by dragging its header to reposition the dialog dynamically.
Blazor modal dialogs create overlays on open modal windows that provide options for a user to control the closing behavior of the dialog.
Users can launch multiple Blazor Dialogs simultaneously or one above the other based on their z-index (z-depth).
A variety of smooth, built-in animations are available to configure the opening and closing of modal dialogs. The Blazor Dialog is animated based on CSS3 animation from the Animation library.
The Blazor Dialog window can be resized by dragging the edges or borders of the Dialog within the target container using its handle (grip) or hovering over it.
The Blazor modal dialog can be closed by clicking the close icon, with an overlay click, or by pressing the ESC key. Users can restrict the closing behavior of a dialog based on its callback function parameters.
The Blazor Dialog component supports right-to-left rendering. Users can change the text direction and layout of the Dialog component from right to left. This improves the user experience and accessibility for those who use RTL languages.
Fully supports WAI-ARIA accessibility, making the Dialog accessible to on-screen readers and assistive devices.
Follows WAI-ARIA best practices for implementing keyboard interaction.
UI element visuals such as foreground color, background color, line spacing, text, and images are designed based on the WCAG 2.0 standard.
The Blazor Dialog component is highly configurable to make mobile dialogs with better user experiences across phone, tablet, and desktop form factors.
The Blazor Dialog component has several built-in themes such as Tailwind CSS, Bootstrap 5, Bootstrap 4, Bootstrap, Material, Fabric, and high contrast. Users can customize these built-in themes or create new themes to achieve the desired look and feel either by simply overriding Sass variables or using the Theme Studio application.
Dialog is also available in JavaScript, Angular, React, and Vue frameworks that are built from their own TypeScript libraries. Check out the Dialog on the different platforms from the links below:
Easily get started with the Blazor Dialog using a few simple lines of C# code as demonstrated below. Also explore our Blazor modal dialog example that shows you how to render and configure the Blazor Dialog.
@using Syncfusion.Blazor.Buttons
<SfButton @onclick="@OpenDialog">Open Modal Dialog</SfButton>
<SfDialog Width="250px" IsModal="true" @bind-Visible="@IsVisible">
<DialogEvents OnOverlayClick="@OnOverlayclick">
</DialogEvents>
<DialogTemplates>
<Content> This is a modal dialog </Content>
</DialogTemplates>
</SfDialog>
@code {
private bool IsVisible { get; set; } = true;
private void OpenDialog()
{
this.IsVisible = true;
}
private void OnOverlayclick(MouseEventArgs arg)
{
this.IsVisible = false;
}
}
The Syncfusion Blazor Dialog is a highly customizable dialog box which supports the following features:
We do not sell the Blazor Dialog separately. It is only available for purchase as part of the Syncfusion team license. This contains over 1,800 components and frameworks, including the Blazor Dialog. The price of the team license starts at $395 per month for 5 developers, and includes support and updates until the subscription expires. In addition, we might offer discounts based on currently active promotions. Please contact our product specialists today to see if you qualify for any additional discounts.
You can find our Blazor Dialog demo here.
No, our 1,800+ components and frameworks for web, mobile, and desktop, including our Blazor Dialog, are not sold individually. They are only available as part of a team license. However, we have competitively priced the product, so it only costs a little bit more than what some other vendors charge for their Dialog component alone. We have also found that, in our experience, our customers usually start off using one of our products and then expand to several products quickly, so we felt it was best to offer all 1,800+ components and frameworks for a subscription fee that starts at $395 per month for a team of 5 developers. Additionally, we might be able to offer discounts based on currently active promotions. Please contact our product specialists today to see if you qualify for any additional discounts.
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.
A good place to start would be our comprehensive getting started documentation.
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.