You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.0 KiB
34 lines
1.0 KiB
2 years ago
|
@namespace Connected.Components
|
||
|
@inherits UIComponent
|
||
|
|
||
|
<div tabindex="0" @attributes="UserAttributes" class="@Classname" style="@Style" @onclick="@OnClickHandler">
|
||
|
@if (!String.IsNullOrEmpty(Avatar))
|
||
|
{
|
||
|
<Avatar Class="@AvatarClass" Color="@Color">
|
||
|
<MudIcon Icon="@Avatar" />
|
||
|
</Avatar>
|
||
|
}
|
||
|
else if (!String.IsNullOrEmpty(Icon) && !IsChecked)
|
||
|
{
|
||
|
<Icon Icon="@Icon" Class="mud-chip-icon" Size="Size.Small" Color="@IconColor" />
|
||
|
}
|
||
|
else if (IsChecked)
|
||
|
{
|
||
|
<Icon Icon="@CheckedIcon" Class="mud-chip-icon" Size="Size.Small" />
|
||
|
}
|
||
|
<span class="mud-chip-content">
|
||
|
@if (ChildContent == null)
|
||
|
{
|
||
|
@Text
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
@ChildContent
|
||
|
}
|
||
|
@if (OnClose.HasDelegate || ChipSet?.AllClosable==true)
|
||
|
{
|
||
|
<IconButton Class="mud-chip-close-button" Icon="@(String.IsNullOrEmpty(CloseIcon) ? $"{Icons.Material.Filled.Cancel}" : $"{CloseIcon}")" OnClick="OnCloseHandler" Size="Size.Small"/>
|
||
|
}
|
||
|
</span>
|
||
|
</div>
|