Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit 5c6bca0

Browse files
committed
Aggiunti componenti creati in precedenza
1 parent 1572a6a commit 5c6bca0

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<MudAlert Severity="@severity" Variant="@variant" Dense="@dense" NoIcon="noIcon" Square="@square" Elevation="@elevation" ContentAlignment="@contentAlignment">@text</MudAlert>
2+
3+
@code {
4+
[Parameter, Required] public string text { get; set; }
5+
[Parameter, Required] public Severity severity { get; set; }
6+
[Parameter, Required] public Variant variant { get; set; }
7+
[Parameter] public bool dense { get; set; } = false;
8+
[Parameter] public bool noIcon { get; set; } = false;
9+
[Parameter] public bool square { get; set; } = false;
10+
[Parameter] public int elevation { get; set; } = 1;
11+
[Parameter] public HorizontalAlignment contentAlignment { get; set; } = HorizontalAlignment.Left;
12+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@if (image is not null)
2+
{
3+
<MudAvatar Color="@color" Variant="@variant" Size="@size" square="@square" Image="@image" Alt="@altimage">@text</MudAvatar>
4+
}
5+
else
6+
{
7+
<MudAvatar Color="@color" Variant="@variant" Size="@size" square="@square">@text</MudAvatar>
8+
}
9+
10+
@code {
11+
[Parameter, Required] public string text { get; set; }
12+
[Parameter, Required] public Color color { get; set; }
13+
[Parameter, Required] public Variant variant { get; set; }
14+
[Parameter, Required] public Size size { get; set; }
15+
[Parameter] public bool square { get; set; } = false;
16+
[Parameter] public string image { get; set; } = null;
17+
[Parameter] public string altimage { get; set; } = null;
18+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
@using Microsoft.AspNetCore.Components.Web
2+
@using System.ComponentModel.DataAnnotations
3+
4+
@using MudBlazor

0 commit comments

Comments
 (0)