This repository was archived by the owner on Feb 29, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed
src/MudBlazor.CustomLibrary Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 11@using Microsoft .AspNetCore .Components .Web
2+ @using System .ComponentModel .DataAnnotations
3+
4+ @using MudBlazor
You can’t perform that action at this time.
0 commit comments