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
.
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.
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.
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.
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
.
Name | Type | Default | Description | Example |
---|---|---|---|---|
class | String | Adds custom classes | class="myClass" | |
size | String | Changes the size of the spinner. Select from one these keywords: big and small . | <CDBSpinner size="big" ... /> | |
color | String | primary | Determines breadcrumb background color, accepts CDB predefined color classes: primary secondary success danger warning info light dark | color="primary" |
multicolor | Boolean | false | Allows 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.