Feedback

Skeleton

@xui/skeleton

Turn an existing element into a loading placeholder in place.

Install

pnpm add @xui/skeleton

Add the barrel to a standalone component's imports:

import { XuiSkeletonImports } from '@xui/skeleton';

@Component({
  imports: [XuiSkeletonImports],
  // …
})

Examples

Default

Loading preview…

Mask in place

Loading preview…

API

XuiSkeletonMask

directive[xuiSkeleton]

Turn an existing element into a loading placeholder in place.

Inputs

NameTypeDefaultactivebooleanWhether the placeholder is showing. Bare xuiSkeleton means always on; bind it to toggle.true

XuiSkeleton

componentxui-skeleton

A placeholder block standing in for content that has not loaded.

Inputs

NameTypeDefaultclassClassValueThe user-defined classes''

Source

libs/ui/skeleton/xui

xUI 2.0.0 — Apache 2.0 licensed. Built with Angular and Tailwind CSS.