@using MudBlazor
@inherits MudImage

@if (string.IsNullOrWhiteSpace(src))
{
    <MudSkeleton Class="@Class" Style="@Style" SkeletonType="SkeletonType.Rectangle" Height="@(Height != null ? $"{Height}px" : "100%")" Width="@(Width != null ? $"{Width}px" : "100%")" />
}
else
{
    <MudImage Src="@src" Alt="@Alt" Elevation="@Elevation" Class="@Class" Fluid="@Fluid" Height="@Height" ObjectFit="@ObjectFit" ObjectPosition="@ObjectPosition" Style="@Style" Tag="@Tag" Width="@Width" @onclick="async()=>await OnClick.InvokeAsync()" />
}

