1.0.5 • Published 3 years ago

ultralight-spinner v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Repo Banner

ultralight-spinner

Blazing Fast Blazing Fast CI

An 0.83 kb loading spinner component for React.

Install

With npm

npm i ultralight-spinner

Or with yarn

yarn add ultralight-spinner

The component

<Spinner>

Props

  • size?: number Size (width and height) of the spinner in pixels (default: 20)
  • strokeWidth?: number Width of the spinner stroke in pixel (default: 2.5)
  • rotateSpeed?: number Time it takes for a full rotation in seconds (default: 1)
  • anything else you can pass to an <svg> tag except children
import { Spinner } from "ultralight-spinner"

function App() {
  return (
    <div>
      <Spinner strokeWidth={3} />
    </div>
  )
}

export default App

MIT License

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago