@* Skeleton loading placeholder for cards and content areas. *@
@if (ShowTitle)
{
}
@for (int i = 0; i < LineCount; i++)
{
}
@code {
///
/// Number of skeleton content lines to render. Defaults to 4.
///
[Parameter]
public int LineCount { get; set; } = 4;
///
/// Whether to show a title skeleton row at the top. Defaults to true.
///
[Parameter]
public bool ShowTitle { get; set; } = true;
///
/// Additional CSS classes applied to the paper.
///
[Parameter]
public string Class { get; set; } = string.Empty;
private string GetWidth(int index) => (index % 3) switch
{
0 => "100%",
1 => "85%",
_ => "92%"
};
}