Skeleton
feedback
Skeleton component
Terminal
$termuijs render skeleton
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
| Prop | Type | Required | Description |
|---|---|---|---|
variant | 'pulse' | 'shimmer' | optional | — |
speed | 'slow' | 'normal' | 'fast' | optional | — |
shape | 'text' | 'card' | 'table' | 'list' | optional | — |
intervalMs | number | optional | — |
chars | [string, string] | optional | — |
color | Color | optional | — |