Tesserae

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 placeholder.

class

Skeleton

public sealed class Skeleton : ComponentBase<Skeleton, HTMLElement>

Constructors

Constructor
Skeleton
public Skeleton(SkeletonType type = SkeletonType.Line)

Initializes a new instance of this class.

Properties

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

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 Tesserae. All rights reserved.