Search...

Spinner

Contrast Angular Bootstrap Spinner

Contrast Angular Bootstrap Spinner is an animation used to indicate a running process. It helps to improve users' experience on websites or web applications.

Importing the Contrast Angular Bootstrap Spinner Module

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

ts
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

Build modern projects using Bootstrap 5 and Contrast

Trying to create components and pages for a web app or website from scratch while maintaining a modern User interface can be very tedious. This is why we created Contrast, to help drastically 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 Premium UI Kit Library featuring over 10000+ component variants. Which even comes bundled together with its own admin template comprising of 5 admin dashboards and 23+ additional admin and multipurpose pages for building almost any type of website or web app.
See a demo and learn more about Contrast Bootstrap Pro by clicking here.