New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@hdoc-react/spinner

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hdoc-react/spinner

Simple spinner component for your React app

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

@hdoc-react/spinner

npm npm bundle size npm

Simple spinner component for your React app

demo

Installation

npm install @hdoc-react/spinner

Usage

import { RingSpinner } from "@hdoc-react/spinner";

function App() {
  return (
    <>
      <RingSpinner />
    </>
  );
}

Props

size

The size of the spinner.

Type: 'small' | 'large'

speed

The speed of the spinner.

Type: 'slow' | 'fast'

color

The color of the spinner.

Type: 'primary' | 'secondary' | 'error' | 'warning' | 'info' | 'success'

className

Additional class names for extending styles.

Type: string

Customization

CSS Custom Properties

You can customize the spinner by using the following CSS custom properties:

.any-parent-of-spinner,
.class-to-extend-styles {
  --spinner-size: 24px;
  --spinner-color: black; /* default color */
  --spinner-animation-duration: 1s;

  /* COLOR VARIANTS */
  --primary: lightblue;
  --secondary: lightgray;
  --error: red;
  --warning: orange;
  --info: skyblue;
  --success: green;
}

CSS classes

.ring-spinner

The base styles for the spinner

.spinner--small

The small styles for the spinner

.spinner--large

The large styles for the spinner

.spinner--slow

The slow styles for the spinner

.spinner--fast

The fast styles for the spinner

.spinner--primary

The primary styles for the spinner

.spinner--secondary

The secondary styles for the spinner

.spinner--error

The error styles for the spinner

.spinner--warning

The warning styles for the spinner

.spinner--info

The info styles for the spinner

.spinner--success

The success styles for the spinner

Keywords

react

FAQs

Package last updated on 23 Feb 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