Skeleton
Skeleton
Section titled “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
Section titled “Import”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" />Variants & sizes
Section titled “Variants & sizes”| Option | Values | Default | Notes |
|---|---|---|---|
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" />Inputs
Section titled “Inputs”| Input | Type | Default | Notes |
|---|---|---|---|
variant | 'text' | 'circle' | 'rect' | 'rect' | Placeholder shape. |
width | string | null | null | CSS width override (e.g. '60%', '120px'). |
height | string | null | null | CSS height override. |
Accessibility
Section titled “Accessibility”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.
Storybook
Section titled “Storybook”Interactive examples live in Storybook under Feedback / Skeleton. Run pnpm storybook to explore them.