# component-spin

> Higher level spinner API

Latest version **0.1.1** (published 2015-03-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install component-spin
pnpm add component-spin
yarn add component-spin
bun add component-spin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2015-03-19 |
| First published | 2015-03-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 21 |
| Maintainers | tootallnate, dominicbarnes |
| Keywords | spin, spinner, load, loading, progress |

## Links

- npm: https://www.npmjs.com/package/component-spin
- Repository: https://github.com/component/spin
- Issues: https://github.com/component/spin/issues
- npm.io page: https://npm.io/package/component-spin

## Dependencies (4)

- [debug](https://npm.io/package/debug.md) *
- [removed](https://npm.io/package/removed.md) 0.0.5
- [component-css](https://npm.io/package/component-css.md) 0.0.6
- [component-spinner](https://npm.io/package/component-spinner.md) 1.1.1

## Recent versions

- 0.1.1 (latest) — 2015-03-19
- 0.1.0 — 2015-03-19

## README

# spin

  Higher level spinner API auto positioning and scaling
  to fit within the target element. Built on [component/spinner](https://github.com/component/spinner).

  ![javascript spinner](http://i.cloudup.com/7F5SguoUkoB+e4r.png)

## Installation

    $ component install component/spin

## API

### spin(el, [options])

  Add a spinner to `el` with options, and return
  the `Spinner` instance.

   - `size` defaulting to 1/5th the element width
   - `delay` default to 300ms

```js
var s = spin(document.querySelector('.one'));
```

### Spinner#update()

  Augments the `Spinner` returned with an `.update()` method,
  which updates the size and position of the spinner.

### Spinner#remove()

  Augments the `Spinner` returned with a `.remove()` method,
  which when removes the spinner or cancels delayed spinners.

## License

  MIT

---
_Source: https://npm.io/package/component-spin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
