🤩
Windframe Import Update is finally here.

Spinner

Angular Bootstrap Spinner

Angular Bootstrap Spinner is animation that is used to keep visitors entertained while the page is still loading, which helps to increase the user experience.

Importing the Contrast Angular Bootstrap Spinner Module

To use the Contrast Angular Bootstrap Spinner component in your project you need to import SpinnerModule.

typescript
import {SpinnerModule } from 'cdbangular';

Default Spinner

Use the Contrast Bootstrap Spinner Component to create your spinner.

The CDBSpinner component takes in a color prop, this prop allows us to give the spinner any background color of our choice.

Angular Bootstrap Spinner Default

html
html
<CDBSpinner ></CDBSpinner>
<CDBSpinner color='danger' ></CDBSpinner>
<CDBSpinner color='success' ></CDBSpinner>
<CDBSpinner color='warning' ></CDBSpinner>
<CDBSpinner color='info' ></CDBSpinner>
<CDBSpinner color='dark' ></CDBSpinner>
<CDBSpinner color='secondary' ></CDBSpinner>

Multicolor Spinner

Set the multicolor prop to true to give your spinner multiple colors.

Angular Bootstrap Spinner Multicolor

html
html
<CDBSpinner [multicolor]=true ></CDBSpinner>

Size Variations

Use the size prop to specify how large or little you want your spinner to be. The size options ranges from (small to big). the default size of the spinner is medium.

Angular Bootstrap Spinner Size Variations

html
html
<CDBSpinner size="big" ></CDBSpinner>
<CDBSpinner color='secondary' ></CDBSpinner>
<CDBSpinner color='success' size="small" ></CDBSpinner>

API Reference: Contrast Angular Bootstrap Spinner Props

This section will build on your information about the props you get to use with the Contrast Angular Bootstrap Spinner component. You will find out what these props do, their default values, and how you would use them in your code.

The table below lists other prop options of the CDBSpinner.

NameTypeDefaultDescriptionExample
classStringAdds custom classesclass="myClass"
sizeStringChanges the size of the spinner. Select from one these keywords: big and small.<CDBSpinner size="big" ... />
colorStringprimaryDetermines breadcrumb background color, accepts CDB predefined color classes: primary secondary success danger warning info light darkcolor="primary"
multicolorBooleanfalseAllows spinner multi colors[multicolor]=true

Trying to build out all user interfaces and components for your website or web app from scratch can become a very tedious task. A huge reason why we created Contrast Bootstrap to help reduce the amount of time we spend doing that, so we can focus on building some other aspects of the project. Contrast Bootstrap PRO consists of a UI Kit featuring over 10000+ component variants. Together with a template of 5 admin dashboards and 23+ additional multipurpose pages template for building almost any type of website or web app. You can view a demo and learn more about Contrast by clicking here.Download the free react template

ad-banner

Contrast Bootstrap PRO was built using the most popular CSS framework Bootstrap to help build your next landing, admin SAAS, prelaunch etc project with a clean, prebuilt and well documented template and UI components.Learn more about Contrast