ultralight-spinner
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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

Package Sidebar

Install

npm i ultralight-spinner

Weekly Downloads

12

Version

1.0.5

License

MIT

Unpacked Size

15.2 kB

Total Files

17

Last publish

Collaborators

  • assar