Feedback
Glass Skeleton
Soft glass placeholders that hold the shape of content still loading.
Preview
Installation
Install the package once, then import the parts you use into a standalone component.
Install
npm install ngx-vitreo @angular/cdk @floating-ui/domImport
import { GlassSkeleton } from 'ngx-vitreo';
@Component({
imports: [GlassSkeleton],
// ...
})Usage
Usage
<div aria-busy="true">
<glass-skeleton variant="circle" />
<glass-skeleton variant="text" [lines]="2" />
</div>
<glass-skeleton style="height: 120px; border-radius: 20px" />API reference
GlassSkeleton
glass-skeleton
| Input | Type | Default | Description |
|---|---|---|---|
variant | 'block' | 'circle' | 'text' | 'block' | block is sized with CSS, circle is a 2.5rem circle you can resize with width, and text is a stack of lines. |
lines | number | 3 | Line count for the text variant, at least 1; the last of several lines is shorter. |