Socket
Socket
Sign inDemoInstall

@mdhnpm/cube-loading-spinner

Package Overview
Dependencies
83
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @mdhnpm/cube-loading-spinner

Super cool configurable cube loading spinner for react. There are 4 configurable options.


Version published
Maintainers
1
Created

Changelog

Source

1.7.0 (2022-02-21)

Features

  • component: making loader configurable (8a0b205)

Readme

Source

Cube Loading Spinner for React

Super cool configurable cube loading spinner for react. There are 4 configurable options.

propspurpose
mainColorMain color of the cube. It takes any CSS color values (color name, hex, rgb).
secondaryColorSecondary color of the cube
spinnerWidthWidth of the spinner (e.g. 28px). Height will be determined according to the width automatically
spinnerSpeedSpeed of the spinner rotation (e.g. 1.5s).

Usage

Import the module.

import { CubeLoadingSpinner } from "@mdhnpm/cube-loading-spinner";

We can configure the spinner.

<CubeLoadingSpinner
  mainColor="black"
  secondaryColor="gray"
  spinnerWidth="28px"
  spinnerSpeed="1.5s"
/>

The props are optional. If you don't pass any prop, you can get a default spinner.

<CubeLoadingSpinner />

And this is what it looks like...

spinner gif

Enjoy 🤟💀🤟

FAQs

Last updated on 21 Feb 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc