Skip to contents

Render readable text with an optional loading shimmer.

Usage

shad_shimmer(..., active = TRUE, class = NULL)

Arguments

...

Text content and optional attributes.

active

One scalar logical indicating whether the shimmer is active.

class

Extra CSS classes.

Value

A span tag.

Examples

shad_shimmer("Thinking...")
#> <span class="shad-shimmer" data-active>Thinking...</span>
shad_shimmer("Finished", active = FALSE)
#> <span class="shad-shimmer">Finished</span>