You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP β†’
Socket
Book a DemoInstallSign in
Socket

react-bootstrap-spinner

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-bootstrap-spinner

πŸŽ‰ React-Bootstrap-Spinner is a customizable and flexible spinner component for React applications. It allows you to create Bootstrap-style spinners using both predefined Bootstrap colors and custom color codes, with support for both border and grow anima

1.0.5
latest
npmnpm
Version published
Weekly downloads
90
Maintainers
0
Weekly downloads
Β 
Created
Source

React Bootstrap Spinner

πŸŽ‰ React-Bootstrap-Spinner is a customizable and flexible spinner component for React applications. It allows you to create Bootstrap-style spinners using both predefined Bootstrap colors and custom color codes, with support for both border and grow animations.

NPM NPM JavaScript Style Guide

Showcase

Here’s how the react-bootstrap-spinner component looks:

React Keyboard Light Mode

✨ Features

  • πŸŒ€ Border and Grow animations
  • 🎨 Custom color support (hex codes, RGB, etc.)
  • πŸ–ŒοΈ Bootstrap color variants (primary, success, danger, etc.)
  • ⚑ Easy integration into React projects
  • πŸ”§ Adjustable spinner size

πŸš€ Install

To install the package, run the following command:

npm install react-bootstrap-spinner

πŸ“– Usage

Here's an example of how to use the spinner component in your React project:

import React from 'react';
import Spinner from 'react-bootstrap-spinner';

const App = () => (
  <div>
    <h1>Loading...</h1>
    <Spinner animation="border" color="primary" size="4rem" />
    <Spinner animation="grow" color="#ff6347" size="2rem" />  {/* Custom color */}
  </div>
);

export default App;

Props

PropTypeDefaultDescription
animationstring"border"The type of spinner animation ("border" or "grow").
colorstring"primary"The color of the spinner. Can be a Bootstrap color or a custom hex code.
sizestring"3rem"The size of the spinner, defined in CSS units (e.g., "2rem", "50px").

🀝 Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Thanks ❀️

License

MIT Β© License

Author

Made with ❀️ by Ajay Marathe

Keywords

react-bootstrap-spinner

FAQs

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