@namespace Connected.Components
@if (!string.IsNullOrWhiteSpace(Text))
{
@Text
}
else if (!string.IsNullOrWhiteSpace(Icon))
{
@if (AdornmentClick.HasDelegate)
{
}
else
{
}
}
@code {
[Parameter] public string Class { get; set; }
[Parameter] public string Text { get; set; }
[Parameter] public string Icon { get; set; }
[Parameter] public Edge Edge { get; set; }
[Parameter] public Size Size { get; set; } = Size.Medium;
[Parameter] public ThemeColor Color { get; set; } = ThemeColor.Default;
[Parameter] public string AriaLabel { get; set; }
[Parameter] public EventCallback AdornmentClick { get; set; }
}