@kvass/loader
v1.0.0
Published
Loader component for Kvass
Downloads
2
Readme
@kvass/loader
Loader component for Kvass
npm install @kvass/loader
Props
Type: Boolean | Promise
If it's a boolean, true
triggers the loading state.
If you pass in a promise, the loading state will automatically trigger and finish. In the case of an error, it throws.
Type: String
The visual style of the loader.
- default hides its children.
- overlay lays on top of its children.
Type: String
Loading message.
Type: Number
The amount of time needed to pass before the loading state triggers. Only loading taking longer than this delay will trigger the loading state.
Slots
Content being loaded.
Will be shown while loading. Default is a spinner.
Will be shown while loading.
License
This project is licensed under the MIT license