• Getting Started
  • Components
  • Github
  • Go pro
energyGetting started
  • Introduction
dComponents
  • Button Components
  • Grid Components
  • Input Components
  • Layout Components
  • Toast Components
  • Widget Components
  • Alert
  • Badge
  • Breadcrumb
  • Callout
  • Card
  • Carousel
  • Charts
  • Collapse
  • CreateElement
  • DataTable
  • Dropdown
  • ElementCover
  • Embed
  • Fade
  • Form
  • Icon
  • Img
  • Jumbotron
  • Link
  • ListGroup
  • Media
  • Modal
  • Nav
  • Navbar
  • Pagination
  • Popover
  • Progress
  • Spinner
  • Switch
  • Tabs
  • Toggler
  • Tooltip

Spinner

Indicate the loading state of a component or page with React spinners.


Usage

Example


Script


  return (
    <div className="d-flex justify-content-between align-items-center">
      <CSpinner color="success" size="sm" />
      <CSpinner color="info" />
      <CSpinner
        color="primary"
        style={{width:'4rem', height:'4rem'}}
      />
      <CSpinner size="sm" variant="grow" />
      <CSpinner color="warning" variant="grow" />
      <CSpinner
        style={{width:'4rem', height:'4rem'}}
        color="danger"
        variant="grow"
      />
    </div>
  )
  


# Features

  • Spinning and grow effect
  • Fully customizable size
  • Screen readers friendly

# Spinner API

NameRequiredTypeDefault Value
taganydiv
main HTML tag name
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag
growboolean
grow type
sizestring
set size of the spinner. Default available sizes: 'sm'
colorstring
color of the component

  • Components
    • Usage
      • Features
      • API
CoreUI © 2020 creativeLabs.core-logo