An open API service indexing awesome lists of open source software.

https://github.com/saileshrijal/blazoreasydialog

BlazorEasyDialog is a lightweight and easy-to-use dialog component for Blazor applications, completely free from JavaScript dependencies.
https://github.com/saileshrijal/blazoreasydialog

Last synced: about 2 months ago
JSON representation

BlazorEasyDialog is a lightweight and easy-to-use dialog component for Blazor applications, completely free from JavaScript dependencies.

Awesome Lists containing this project

README

        

# BlazorEasyDialog

BlazorEasyDialog is a simple, JavaScript-free dialog component for Blazor applications. It allows you to easily create and customize dialogs without relying on external JavaScript libraries.

## Features

- Create dialogs without writing JavaScript
- Customize dialog appearance and behavior
- Easily integrate dialogs into existing Blazor applications
## Installation

**1. Add the nuget package in your Blazor project**

```bash
> dotnet add package BlazorEasyDialog

OR

PM> Install-Package BlazorEasyDialog
```
**2. Add css link in head of index.html**

```bash

```

**3. Add the following line in your _Imports.razor**

```bash
@using BlazorEasyDialog.Components

```
## Usage/Examples

**1. Home.razor**

```csharp
ShowDialog = true">Open

@page "/"

@TextValue


ShowDialog =true">Open


This is a dialog body!!


```

**2. Home.razor.cs**

```csharp
using Microsoft.AspNetCore.Components;

namespace BlazorEasyDialog.Sample.Pages;

public partial class Home : ComponentBase
{
public string TextValue { get; set; }
public bool ShowDialog { get; set; }

private void OnSubmit(bool isSuccess)
{
TextValue = isSuccess ? "Success" : "Not success";
ShowDialog = false;
}
}
```