Skeleton
Skeleton shows a pulsing placeholder where content is still loading. Use it to keep the layout steady until data arrives. For a short wait with no known layout, use Spinner.
Installation
Run npx nxds-cli@latest init first if nxds isn’t set up in your app yet. See Install.
Usage
Examples
Circle
Use a round placeholder for an avatar or icon.
Text lines
Stack bars of different widths to stand in for a paragraph.
Props
Skeleton
Skeleton adds no props of its own; it accepts the props of the element or primitive it wraps.
Skeleton shows a pulsing placeholder where content is still loading. Use it to keep the layout steady until data arrives. For a short wait with no known layout, use Spinner.
Installation
Copy and paste the following code into your project.
components/skeleton/Skeleton.vue components/skeleton/index.ts Keep each file at the path shown above it.
Paths are relative to
packages/vue/src/. Keep the same folders under your@/root, and the imports between files work without edits.
Usage
Examples
Circle
Use a round placeholder for an avatar or icon.
Text lines
Stack bars of different widths to stand in for a paragraph.
Props
Skeleton
Skeleton adds no props of its own; it accepts the props of the element or primitive it wraps.