@busshi/react-dots-loader
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

publish

React-Dots-Loader

A custom React dots loader component reusable without extra dependency (only React dependencies).

Installation

yarn add @busshi/react-dots-loader or npm install @busshi/react-dots-loader

Custom properties

Props Type Default value Optional
width string 20px x
height string 20px x
color string #ddd x

Note

Colors can be passed as prop as hex (#FFF), rgb (rgb(255, 255, 255)) or as noun (white).

Usage

import DotsLoader from "@busshi/react-dots-loader";

function App() {
  return <DotsLoader width="20px" height="20px" color="#ddd" />;
}

export default App;

Package Sidebar

Install

npm i @busshi/react-dots-loader

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

6.49 kB

Total Files

13

Last publish

Collaborators

  • busshi