VueProgress Components
Spinner
Use the `Spinner` component
The Spinner
component must be used inside the Progress
component.
Import
Note
Replace the ...
in the import with the library you're using. For example, if you use @bprogress/nuxt
, import by doing from '@bprogress/nuxt'
Usage
This component is used to display the spinner.
It can also be used with a slot to insert a child component (like a custom component) as follows:
Or with a custom spinner component like this:
Props
Name | Type | Default | Description |
---|---|---|---|
is | string | Component | 'div' | The component or HTML element to render. This prop uses Vue's is attribute for dynamic rendering. |
class | ClassValue | undefinded | The class of the progress element |
classSelector | string | 'spinner' | The class selector of the progress element (depends on your css) |
...rest | HTMLAttributes | - | Other attributes passed down to the rendered element |