• 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

Widget Components

Set of widgets.




WidgetBrand


Usage

Example

973k
followers
1.792
tweets

Script


  return (
    <div className={'row mt-2'}>
      <div className={'col-6'}>
        <CWidgetBrand
          color="twitter"
          rightHeader="973k"
          rightFooter="followers"
          leftHeader="1.792"
          leftFooter="tweets"
        >
          <CIcon
            name="cibTwitter"
            height="52"
            className="my-4"
          />
        </CWidgetBrand>
      </div>
    </div>
  )
  


# WidgetBrand API

NameRequiredTypeDefault Value
childrenany
children components
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag
colorstring
backgroud color
rightHeaderstring
right header text
rightFooterstring
right footer text
leftHeaderstring
left header text
leftFooterstring
left footer text
addHeaderClasses(function String() { [native code] } | function Array() { [native code] } | function Object() { [native code] })
additional classes for header
bodySlotany
main slot



WidgetDropdown


Usage

Example

9.823
Members online
ActionAnother actionSomething else here...
(Chart)

Script


  return (
    <div className={'row mt-2'}>
      <div className={'col-6'}>
        <CWidgetDropdown
          color="gradient-warning"
          header="9.823"
          text="Members online"
          footerSlot={
            <div
              className={'text-center'}
              style={{ height: '100px' }}
            >
              (Chart)
            </div>
          }
        >
          <CDropdown>
            <CDropdownToggle color="transparent">
              <CIcon name={'cilSettings'} size={'md'}/>
            </CDropdownToggle>
            <CDropdownMenu className="p-0" placement="bottom-end">
              <CDropdownItem>Action</CDropdownItem>
              <CDropdownItem>Another action</CDropdownItem>
              <CDropdownItem>Something else here...</CDropdownItem>
            </CDropdownMenu>
          </CDropdown>
        </CWidgetDropdown>
      </div>
    </div>
  )
  


# WidgetDropdown API

NameRequiredTypeDefault Value
childrenany
children components
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag
headerstring
header text
colorstring
backgroud color
footerSlotany
footer slot content
textstring
main text



WidgetIcon


Usage

Example

$1.999,50
income

Script


  return (
    <div className={'row mt-2'}>
      <div className={'col-6'}>
        <CWidgetIcon text="income" header="$1.999,50" color="primary">
          <CIcon name={'cilSettings'} size={'xl'}/>
        </CWidgetIcon>
      </div>
    </div>
  )
  


# WidgetIcon API

NameRequiredTypeDefault Value
childrenany
children components
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag
headerstring
header text
textstring
main text
iconPaddingbooleantrue
additional padding for icon
colorstring
backgroud color
footerSlotany
footer slot content



WidgetProgress


Usage

Example

89.9%
Lorem ipsum...
Lorem ipsum dolor sit amet enim.

Script


  return (
    <div className={'row mt-2'}>
      <div className={'col-6'}>
        <CWidgetProgress
          color="success"
          header="89.9%"
          text="Lorem ipsum..."
          footer="Lorem ipsum dolor sit amet enim."
        />
      </div>
    </div>
  )
  


# WidgetProgress API

NameRequiredTypeDefault Value
childrenany
children components
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag
headerstring
header text
textstring
main text
footerstring
footer text
colorstring
backgroud color
valuenumber25
progress value
inverseboolean
progress white option



WidgetProgressIcon


Usage

Example

87.500
Visitors

Script


  return (
    <div className={'row mt-2'}>
      <div className={'col-6'}>
        <CWidgetProgressIcon
          header="87.500"
          text="Visitors"
          color="gradient-info"
        >
          <CIcon name="cilSettings" size="xl"/>
        </CWidgetProgressIcon>
      </div>
    </div>
  )
  


# WidgetProgressIcon API

NameRequiredTypeDefault Value
childrenany
children components
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag
headerstring
header text
textstring
main text
colorstring
backgroud color
valuenumber25
progress value
inverseboolean
progress white option
progressSlotany
progress slot content



WidgetSimple


Usage

Example

title
1,123
(Chart)

Script


  return (
    <div className={'row mt-2'}>
      <div className={'col-6'}>
        <CWidgetSimple header="title" text="1,123">
          (Chart)
        </CWidgetSimple>
      </div>
    </div>
  )
  


# WidgetSimple API

NameRequiredTypeDefault Value
childrenany
children components
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag
headerstring
header text
textstring
main text

  • Components
    • Usage
      • Features
      • API
    • Related
      • -Widget
      • CWidgetBrand
      • CWidgetDropdown
      • CWidgetIcon
      • CWidgetProgress
      • CWidgetProgressIcon
      • CWidgetSimple
CoreUI © 2020 creativeLabs.core-logo