Skip to contents

Create a loading skeleton placeholder using Designsystemet styles.

Usage

ds_skeleton(variant = "text", width = NULL, height = NULL, class = NULL)

Arguments

variant

Skeleton variant ("text", "circle", "rectangle")

width

Width of the skeleton

height

Height of the skeleton

class

Additional CSS classes

Value

A Shiny tag object

Examples

ds_skeleton(variant = "text", width = "200px")
#> <div class="ds-skeleton" data-variant="text" style="width:200px" aria-hidden="true"></div>
ds_skeleton(variant = "circle", width = "50px", height = "50px")
#> <div class="ds-skeleton" data-variant="circle" style="width:50px;height:50px" aria-hidden="true"></div>