Skip to content

Skeleton

widgetsfeedback

Skeleton component

Installation

$ bunx termuijs add skeleton

Copies the source into src/components/skeleton/ and installs @termuijs/core, @termuijs/motion, @termuijs/widgets.

Usage

ts
import { Skeleton } from '@termuijs/widgets'
ts
new Skeleton(style: Partial<Style> = {}, opts: SkeletonOptions = {})

API Reference

Skeleton

PropTypeRequiredDescription
variant'pulse' | 'shimmer'optional
speed'slow' | 'normal' | 'fast'optional
shape'text' | 'card' | 'table' | 'list'optional
intervalMsnumberoptional
chars[string, string]optional
colorColoroptional
#feedback#skeleton