Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@olenbetong/spinner

1.0.4 • Public • Published

@olenbetong/spinner

React component used to navigate dates.

Installation

NPM:

npm i @olenbetong/spinner
import { Spinner } from '@olenbetong/spinner';

UMD and ESM builds are available on unpkg.com. For UMD, the components are available in the global ReactSpinner variable.

<script src="https://unpkg.com/@olenbetong/spinner@latest/dist/umd/spinner.min.js" type="text/javascript"></script>
<script type="text/javascript">
const { Spinner } = ReactSpinner;
</script> 
<script type="module">
import { Spinner } from "https://unpkg.com/@olenbetong/spinner@latest/dist/esm/spinner.min.js";
</script> 

Usage

Spinner component has a fullPage property that makes it cover the entire viewport. It is done using width 100vw and height 100vh, so if there is anything else on the page, there will be scrollbars. Size is based on font size.

<Spinner /> // inline
<Spinner fullPage // full page

Keywords

none

Install

npm i @olenbetong/[email protected]

Version

1.0.4

License

MIT

Unpacked Size

27.6 kB

Total Files

10

Last publish

Collaborators

  • avatar