An open API service indexing awesome lists of open source software.

https://github.com/ajaymarathe/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.
https://github.com/ajaymarathe/react-bootstrap-spinner

bootstrap-spinner loaders react-bootstrap-spinner react-loader spinners

Last synced: 5 months ago
JSON representation

πŸŽ‰ 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.

Awesome Lists containing this project

README

          

# 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](https://img.shields.io/npm/v/react-bootstrap-spinner.svg)](https://www.npmjs.com/package/react-bootstrap-spinner) [![NPM](https://img.shields.io/npm/dt/react-bootstrap-spinner.svg)](https://www.npmjs.com/package/react-bootstrap-spinner)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

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

![React Keyboard Light Mode](https://raw.githubusercontent.com/ajaymarathe/react-bootstrap-spinner/refs/heads/master/public/images/react-spinner.png)

## ✨ 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:
```js
npm install react-bootstrap-spinner
```

## πŸ“– Usage
Here's an example of how to use the spinner component in your React project:
```bash
import React from 'react';
import Spinner from 'react-bootstrap-spinner';

const App = () => (


Loading...



{/* Custom color */}

);

export default App;
```

### Props

| Prop | Type | Default | Description |
|-------------|----------|-----------|--------------------------------------------------------------------|
| `animation` | string | `"border"`| The type of spinner animation (`"border"` or `"grow"`). |
| `color` | string | `"primary"`| The color of the spinner. Can be a Bootstrap color or a custom hex code. |
| `size` | string | `"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](https://github.com/ajaymarathe/react-bootstrap-spinner/blob/master/LICENSE)

## Author
Made with ❀️ by [Ajay Marathe](https://github.com/ajaymarathe)