ultralight-spinner
v1.0.5
Published
Tiny and customizable loading spinner component for React
Downloads
29
Maintainers
Readme
ultralight-spinner
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