@kvass/loader
Loader component for Kvass
npm install @kvass/loader
Props
value
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.
theme
Type: String
The visual style of the loader.
- default hides its children.
- overlay lays on top of its children.
message
Type: String
Loading message.
delay
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
default
Content being loaded.
loader
Will be shown while loading. Default is a spinner.
message
Will be shown while loading.
License
This project is licensed under the MIT license