24 lines
672 B
Plaintext
24 lines
672 B
Plaintext
@using JSMR.UI.Blazor.Enums
|
|
|
|
<BitTooltip Text="@Tooltip">
|
|
<div class="j-input-prefix background-color-@BackgroundColor.ToClassName()">
|
|
<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.SurfaceContainerHigh;
|
|
|
|
[Parameter]
|
|
public string? Tooltip { get; set; }
|
|
} |