Spinner
Spinner shows that something is loading. Use it for page loads, "loading more" rows and Suspense fallbacks. For a loading Button, use its loading prop.
Installation
Run npx nxds-cli@latest init first if nxds isn’t set up in your app yet. See Install.
Usage
Examples
Sizes
Size the spinner with nx:size-* and tint it with nx:text-*.
With text
Place the spinner beside text that says what is loading.
Props
Spinner
Spinner adds no props of its own; it accepts the props of the element or primitive it wraps.
Spinner shows that something is loading. For a loading Button, use its loading prop.
Installation
Install the following dependencies:
Copy and paste the following code into your project.
components/spinner/Spinner.vue components/spinner/index.ts lib/icons.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
Sizes
Size the spinner with nx:size-* and tint it with nx:text-*.
With text
Place the spinner beside text that says what is loading.
Props
Spinner
Spinner adds no props of its own; it accepts the props of the element or primitive it wraps.