New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

my-awesome-spinner

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

my-awesome-spinner

The `CircularSpinner` component is a customizable loading spinner built using React and styled-components. It features smooth animations and adjustable properties for color, speed, size, and direction of rotation.

  • 1.0.21
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
0
Weekly downloads
 
Created
Source

CircularSpinner Component

The CircularSpinner component is a customizable loading spinner built using React and styled-components. It features smooth animations and adjustable properties for color, speed, size, and direction of rotation.

Installation

To use the CircularSpinner component, you need to have React and styled-components installed in your project. You can install styled-components using npm:

npm install styled-components

Usage

import React from "react";

import { CircularSpinner } from "./path/to/CircularSpinner";

const App = () => {

return (

Loading...

<CircularSpinner

color1="#D97292"

color2="blue"

opacity1={0.5}

opacity2={1}

speed="1s"

direction="-360deg"

size="80"

/>

);

};

export default App;

Props

The CircularSpinner component accepts the following props:

PropTypeDefaultDescription
color1string#D97292Primary color of the spinner.
color2stringblueSecondary color of the spinner.
opacity1number0.5Opacity for the primary color.
opacity2number1Opacity for the secondary color.
speedstring2sSpeed of the rotation animation (CSS time format).
directionstring-360degDirection of the rotation (e.g., -360deg, 360deg).
sizestring100Size of the spinner (width and height in pixels).

FAQs

Package last updated on 18 Oct 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc