We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

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:

  • Modal dialogs force users to interact with them before continuing. They are used to show important information and non-continuous process information (for example, a sign-up or login form).
  • Non-modal dialogs allow users to interact outside the dialog box even if it is in an active state, which is suitable for frequent, nonblocking dialogs (for example, find-and-replace dialogs).

Action buttons

The Blazor Dialog component provides built-in support to perform actions using buttons, which define necessary callback functions to handle user input.


Localization

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.

Blazor Dialog Localization


Positioning

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.).


Draggable

The Blazor modal dialog can be moved anywhere in a page by dragging its header to reposition the dialog dynamically.


Overlays

Blazor modal dialogs create overlays on open modal windows that provide options for a user to control the closing behavior of the dialog.

Blazor Bootstrap Dialog with overlay


Additional dialogs

Users can launch multiple Blazor Dialogs simultaneously or one above the other based on their z-index (z-depth).


Animation

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.


Resizable

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.


Close options

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.


Right-to-left (RTL)

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.


Blazor Dialog covers web accessibility

Accessibility

  • 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 works well on touch devices.

Responsiveness

The Blazor Dialog component is highly configurable to make mobile dialogs with better user experiences across phone, tablet, and desktop form factors.


Themes

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.


Other supported frameworks

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:


Blazor modal dialog example

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;
    }
}



Blazor Components – 85+ UI and DataViz Components

Frequently Asked Questions

The Syncfusion Blazor Dialog is a highly customizable dialog box which supports the following features:

  • Display critical information, errors, warnings, confirmations, alerts, questions, and message boxes.
  • Use built-in features such as action buttons, drag-and-drop, positioning, animations.
  • Also have support for bootstrap theme in Blazor dialog box which users can customize it.
  • One of the best Blazor Dialog in the market that offers feature-rich UI to interact with the software.
  • Simple configuration and API.
  • Supports all modern browsers.
  • Extensive demos, documentation and videos to learn quickly and get started with Blazor Dialog.

You can find our Blazor Dialog demo here.

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.

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

Transform your applications today by downloading our free evaluation version Download Free Trial

Awards

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.

Up arrow icon
Live Chat Icon For mobile