1.0.5 • Published 3 years ago
ultralight-spinner v1.0.5

ultralight-spinner
An 0.83 kb loading spinner component for React.
Install
With npm
npm i ultralight-spinnerOr with yarn
yarn add ultralight-spinnerThe component
<Spinner>
Props
size?: numberSize (width and height) of the spinner in pixels (default: 20)strokeWidth?: numberWidth of the spinner stroke in pixel (default: 2.5)rotateSpeed?: numberTime 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 AppMIT License