From 98138ad644b9ffec28ffbdaaa5b9f7e1aa9e9f70 Mon Sep 17 00:00:00 2001 From: Brian Bicknell Date: Mon, 8 Dec 2025 10:20:00 -0500 Subject: [PATCH] Added chip component. --- JSMR.UI.Blazor/Components/Chip.razor | 20 ++++++++++++++++++++ JSMR.UI.Blazor/wwwroot/css/app.css | 9 +++++++++ 2 files changed, 29 insertions(+) create mode 100644 JSMR.UI.Blazor/Components/Chip.razor diff --git a/JSMR.UI.Blazor/Components/Chip.razor b/JSMR.UI.Blazor/Components/Chip.razor new file mode 100644 index 0000000..8450ad0 --- /dev/null +++ b/JSMR.UI.Blazor/Components/Chip.razor @@ -0,0 +1,20 @@ +@using JSMR.UI.Blazor.Enums + +
+ @if (Graphic != null) + { + + } + @ChildContent +
+ +@code { + [Parameter] + public RenderFragment? ChildContent { get; set; } + + [Parameter] + public Graphic? Graphic { get; set; } + + [Parameter] + public ColorVarient Color { get; set; } = ColorVarient.Primary; +} \ No newline at end of file diff --git a/JSMR.UI.Blazor/wwwroot/css/app.css b/JSMR.UI.Blazor/wwwroot/css/app.css index 3eb8faa..f3fda9e 100644 --- a/JSMR.UI.Blazor/wwwroot/css/app.css +++ b/JSMR.UI.Blazor/wwwroot/css/app.css @@ -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;