vael-ui v0.3.10

Feedback

Skeleton

A placeholder shape that mimics real content while it is still loading.

Install

import { Skeleton } from 'vael-ui'

Playground

import { Skeleton } from 'vael-ui'

<Skeleton variant="text" animated>Skeleton</Skeleton>

Props

NameTypeDefaultDescription
variant"text" | "rect" | "circle""text"`text` (default): 1em-tall rounded line. `circle`: round, aspect-ratio 1. `rect`: `--ui-radius` corners, sized by content or `ui.root`.
animatedboolean | undefinedtrue
uiPartial<{ root: UiPartValue; }> | undefined

Slots

NameTypeDescription
default{}

Events

No events.

Exposed

NameTypeDescription
elHTMLElement | null