Added chip component.

This commit is contained in:
2025-12-08 10:20:00 -05:00
parent 671198cf98
commit 98138ad644
2 changed files with 29 additions and 0 deletions

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

View File

@@ -608,6 +608,15 @@ code {
font-weight: 500;*/
}
/* Chips */
.j-chip {
display: flex;
align-items: center;
gap: .5rem;
font-size: 1rem;
font-weight: 500;
}
/* Icons */
.j-icon {
mask-repeat: no-repeat;