Skip to content

Skeleton

<ax-skeleton> is a loading placeholder. Stack multiples to mirror the shape of content being loaded. width and height accept any CSS length (e.g. '60%', '120px') as per-instance overrides.

import { AxSkeletonComponent } from '@axisui-ng/feedback';
<ax-skeleton variant="circle" width="40px" height="40px" />
<ax-skeleton variant="text" width="60%" />
<ax-skeleton variant="rect" height="120px" />
OptionValuesDefaultNotes
variant'text' | 'circle' | 'rect''rect'Placeholder shape (text is full-width h-4; circle is rounded-full).
<ax-skeleton variant="text" />
<ax-skeleton variant="circle" width="40px" height="40px" />
<ax-skeleton variant="rect" height="96px" />
InputTypeDefaultNotes
variant'text' | 'circle' | 'rect''rect'Placeholder shape.
widthstring | nullnullCSS width override (e.g. '60%', '120px').
heightstring | nullnullCSS height override.

Skeletons are decorative (aria-hidden="true"). Expose loading state to assistive tech on the surrounding region (e.g. aria-busy="true"), not on each placeholder. Pulse animation stops under prefers-reduced-motion.

Interactive examples live in Storybook under Feedback / Skeleton. Run pnpm storybook to explore them.