lkt-loader
v1.1.6
Published
![ts](https://img.shields.io/badge/Typescript-3178c6?style=for-the-badge) ![js](https://img.shields.io/badge/Javascript-f68333?style=for-the-badge) ![vue](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Flekrat%2Flkt
Downloads
398
Maintainers
Readme
LKT Loader
Installation
npm i -S lkt-loader
Usage
import LktLoader from 'lkt-loader';
app.use(LktLoader);
Configuration
In case you want to change the loader, you can configure the component which will be displayed:
import LktLoader, {setCustomLoader, setCustomSpinner} from 'lkt-loader';
app.use(LktLoader);
setCustomLoader('your-loader-component');
// Or use an imported component
import {Loader} from "path/to/Loader.vue";
setCustomLoader(Loader);
// setCustomSpinner works equal but for an smaller loader (for example, in lkt-button)
Default stylesheet configuration
:root {
/* lkt-loader */
--loader-outer-size: 80px;
--loader-inner-size: 64px;
--loader-color: #ffffff;
}