@kvass/loader

1.0.0 • Public • Published

@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

Readme

Keywords

Package Sidebar

Install

npm i @kvass/loader

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

11.1 kB

Total Files

10

Last publish

Collaborators

  • crsten
  • lissbeat96