Skeleton

Description

A placeholder component for loading state

Skeleton loaders are used to provide a placeholder for content that is still loading. They help reduce the perceived load time and prevent layout shifts by reserving the space that the final content will occupy.

They come in various shapes like circles for avatars and rectangles for text or images.

API reference

enum

SkeletonType

public enum SkeletonType

Predefined shape presets used by the Skeleton placeholder.

Namespace
Tesserae
class

Skeleton

public sealed class Skeleton : ComponentBase<Skeleton, HTMLElement>
Namespace
Tesserae
Inheritance
ComponentBase<Skeleton, HTMLElement> → Skeleton

Constructors

NameDescription
SkeletonInitializes a new instance of this class.
Constructor
Skeleton
public Skeleton(SkeletonType type = SkeletonType.Line)

Initializes a new instance of this class.

Properties

NameDescription
TypeValueGets or sets the type value.
IsAnimatedReturns a value indicating whether the component is animated.
Property
Skeleton.TypeValue
public SkeletonType TypeValue { get ; set ; }

Gets or sets the type value.

Property
Skeleton.IsAnimated
public bool IsAnimated { get ; set ; }

Returns a value indicating whether the component is animated.

Methods

NameDescription
TypeConfigures the component to type.
AnimatedConfigures the component to animated.
BackgroundGets or sets the CSS background of the component.
RenderRenders the component's root HTML element.
Method
Skeleton.Type
public Skeleton Type(SkeletonType type)

Configures the component to type.

Method
Skeleton.Animated
public Skeleton Animated(bool value = true)

Configures the component to animated.

Method
Skeleton.Background
public Skeleton Background(string color)

Gets or sets the CSS background of the component.

Method
Skeleton.Render
public override HTMLElement Render()

Renders the component's root HTML element.

Samples

Avatar and Text Placeholder

Article/Image Placeholder

See also

© 2026 Curiosity. All rights reserved.