Added chip component.
This commit is contained in:
20
JSMR.UI.Blazor/Components/Chip.razor
Normal file
20
JSMR.UI.Blazor/Components/Chip.razor
Normal file
@@ -0,0 +1,20 @@
|
||||
@using JSMR.UI.Blazor.Enums
|
||||
|
||||
<div class="j-chip">
|
||||
@if (Graphic != null)
|
||||
{
|
||||
<Icon Graphic="@Graphic.Value" Color="@Color"></Icon>
|
||||
}
|
||||
<span>@ChildContent</span>
|
||||
</div>
|
||||
|
||||
@code {
|
||||
[Parameter]
|
||||
public RenderFragment? ChildContent { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public Graphic? Graphic { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public ColorVarient Color { get; set; } = ColorVarient.Primary;
|
||||
}
|
||||
Reference in New Issue
Block a user