Added initial components.
This commit is contained in:
24
JSMR.UI.Blazor/Components/InputPrefix.razor
Normal file
24
JSMR.UI.Blazor/Components/InputPrefix.razor
Normal file
@@ -0,0 +1,24 @@
|
||||
@using JSMR.UI.Blazor.Enums
|
||||
|
||||
<BitTooltip Text="@Tooltip">
|
||||
<div class="j-input-prefix background-color-@BackgroundColor.ToString().ToLower()">
|
||||
<Icon Color="Color" Size="SizeVarient.Small" Graphic="Graphic" Varient="IconVarient"></Icon>
|
||||
</div>
|
||||
</BitTooltip>
|
||||
|
||||
@code {
|
||||
[Parameter]
|
||||
public Graphic Graphic { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public IconVarient IconVarient { get; set; } = IconVarient.None;
|
||||
|
||||
[Parameter]
|
||||
public ColorVarient Color { get; set; } = ColorVarient.Primary;
|
||||
|
||||
[Parameter]
|
||||
public ColorVarient BackgroundColor { get; set; } = ColorVarient.Black;
|
||||
|
||||
[Parameter]
|
||||
public string? Tooltip { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user