ReactJS MDBootstrap Spinner Component Last Updated : 11 Apr, 2025 Comments Improve Suggest changes Like Article Like Report MDBootstrap is a Material Design and bootstrap-based react UI library that is used to make good looking webpages with its seamless and easy-to-use component. In this article, we will know how to use Spinner Component in ReactJS MDBootstrap. Spinners are used to indicate the loading state of the component.Properties:tag: It is used to define the tag of the component.color: It is used to define the color of the component.className: It is used to add a custom class to the component.size: It is used to set the size of the spinner.grow: It is used to make a growing spinner.Syntax:<MDBSpinner></MDBSpinner >Creating React Application And Installing Module:Step 1: Create a React application using the following command.npx create-react-app foldernameStep 2: After creating your project folder i.e. foldername, move to it using the following command.cd foldernameStep 3: Install ReactJS MDBootstrap in your given directory.npm i mdb-ui-kitnpm i mdb-react-ui-kitStep 4: Import the element to be used in the project.import { MDBSpinner } from 'mdb-react-ui-kit'Project Structure: It will look like the following.Step to Run Application: Run the application from the root directory of the project, using the following command.npm startExample 1: This is the basic example that shows how to use Spinner Component. App.js import React from "react"; import { MDBSpinner } from "mdb-react-ui-kit"; export default function App() { return ( <div id="gfg"> <h2>GeeksforGeeks</h2> <h4>ReactJS MDBootstrap Spinner component</h4> <MDBSpinner color='success' role='status'> </MDBSpinner> <br /> <MDBSpinner color='danger' grow> </MDBSpinner> </div> ); } Output:Example 2: In this example, we will know how to use the size property in a spinner component App.js import React from "react"; import { MDBSpinner } from "mdb-react-ui-kit"; export default function App() { return ( <div id="gfg"> <h2>GeeksforGeeks</h2> <h4>ReactJS MDBootstrap Spinner component</h4> <MDBSpinner color='success' size='sm' role='status'> </MDBSpinner> <br /> <MDBSpinner color='danger' size='sm' grow> </MDBSpinner> </div> ); } Output:Example 3: In this example, we will know how to add buttons in a spinner component. App.js import React from "react"; import { MDBSpinner, MDBBtn } from "mdb-react-ui-kit"; export default function App() { return ( <div id="gfg"> <h2>GeeksforGeeks</h2> <h4>ReactJS MDBootstrap Spinner component</h4> <MDBBtn color='danger' className='me-3'> <MDBSpinner color='success' size='sm' role='status'> </MDBSpinner> </MDBBtn> <MDBBtn color='success' > <MDBSpinner color='danger' size='sm' grow> </MDBSpinner> </MDBBtn> </div> ); } Output: Comment More infoAdvertise with us Next Article ReactJS MDBootstrap Spinner Component taran910 Follow Improve Article Tags : Web Technologies ReactJS MDBootstrap Similar Reads ReactJS MDBootstrap Switch Component MDBootstrap is a Material Design and bootstrap-based react UI library that is used to make good-looking webpages with its seamless and easy-to-use component. In this article, we will know how to use Switch Component in ReactJS MDBootstrap. The switch component is used to indicate the on/off state of 2 min read ReactJS MDBootstrap Tabs Component MDBootstrap is a Material Design and bootstrap-based react UI library that is used to make good-looking webpages with its seamless and easy-to-use component. In this article, we will know how to use Tabs Component in ReactJS MDBootstrap. Tabs Component are used to improve website clarity and increas 3 min read ReactJS MDBootstrap Tooltips Component MDBootstrap is a Material Design and bootstrap-based react UI library that is used to make good-looking webpages with its seamless and easy-to-use component. In this article, we will know how to use Tooltips Component in ReactJS MDBootstrap. Tooltips are used to provide interactive textual hints to 2 min read ReactJS MDBootstrap Card Component Reactstrap is a bootstrap-based react UI library that is used to make good-looking webpages with its seamless and easy-to-use component.In this article, we will know how to use Card Component in ReactJS MDBootstrap. A card is a flexible and extensible content container. It includes options for heade 3 min read ReactJS MDBootstrap Pills Component MDBootstrap is a Material Design and bootstrap-based react UI library that is used to make good-looking webpages with its seamless and easy-to-use component. In this article, we will know how to use Pills Component in ReactJS MDBootstrap. Pills Component are used to improve website clarity and incre 3 min read ReactJS MDBootstrap Range Component MDBootstrap is a Material Design and bootstrap-based react UI library that is used to make good-looking webpages with its seamless and easy-to-use component. In this article, we will know how to use Range Component in ReactJS MDBootstrap. The Range component allows users to make selections from a ra 2 min read ReactJS MDBootstrap Footer Component MDBootstrap is a Material Design and bootstrap-based react UI library that is used to make good looking webpages with its seamless and easy-to-use component. In this article, we will know how to use Footer Component in ReactJS MDBootstrap. Footer Component is used to add the footer in the element.Pr 2 min read ReactJS MDBootstrap Header Component MDBootstrap is a Material Design and bootstrap-based react UI library that is used to make good-looking webpages with its seamless and easy-to-use component. In this article, we will know how to use Header Component in ReactJS MDBootstrap. Header Component is used to add the header in the element.Sy 2 min read ReactJS MDBootstrap Navbar Component MDBootstrap is a Material Design and bootstrap-based react UI library that is used to make good-looking webpages with its seamless and easy-to-use component. In this article, we will know how to use Navbar Component in ReactJS MDBootstrap. Navbar Component is used in every website to make it more us 2 min read ReactJS MDBootstrap Badges Component MDBootstrap is a Material Design and bootstrap-based react UI library that is used to make good-looking webpages with its seamless and easy-to-use component.In this article we will know how to use Badges Component in ReactJS MDBootstrap. Badges Component is used to present the text as the badges.Pro 2 min read Like