Files
decePubClient/Components/Daisy/Feedback/DSkeleton.razor
T

13 lines
555 B
Plaintext
Raw Normal View History

@inherits DComponentBase
@* daisyUI Skeleton: https://daisyui.com/components/skeleton/ . Size it with h-* / w-* classes; IsText (skeleton-text)
animates ChildContent's text instead of drawing a block. *@
<div @attributes="AdditionalAttributes" class="@Cx("skeleton", IsText ? "skeleton-text" : null, Class)">
@ChildContent
</div>
@code {
[Parameter] public RenderFragment ChildContent { get; set; }
/// <summary>Shimmer the text in ChildContent (skeleton-text) rather than a filled block.</summary>
[Parameter] public bool IsText { get; set; }
}