Package Exports
- @ppci/custom-loader
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ppci/custom-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Loader
A loader/spinner indicator
Table of contents
Installation
NPM
npm i @ppci/custom-loader
Usage
Javascript
import '@ppci/custom-loader'
Browser
<!-- Default -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/custom-loader/builds/index.min.js" />
<!-- Legacy -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/custom-loader/builds/legacy.min.js" />
<custom-loader
></custom-loader>
Theme | Styling
Set the color of the spinner.
custom-loader {
--stroke-color: #32b4e9;
}
Set the size of the spinner manually. However, we also provide a couple of predefined size classes see properties for more info.
custom-loader {
--size: 10.5rem;
}
Properties
Property | Type | Description | Possible Values |
small | Boolean | Show a small loader/spinner |
```html
|
medium | Boolean | Show a medium loader/spinner |
```html
|