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
Name | Required | Type | Default Value |
---|---|---|---|
children | any | ||
children components | |||
className | string | ||
user classes for the main HTML tag | |||
innerRef | (object | Function | string) | ||
ref to the main tag | |||
color | string | ||
backgroud color | |||
rightHeader | string | ||
right header text | |||
rightFooter | string | ||
right footer text | |||
leftHeader | string | ||
left header text | |||
leftFooter | string | ||
left footer text | |||
addHeaderClasses | (function String() { [native code] } | function Array() { [native code] } | function Object() { [native code] }) | ||
additional classes for header | |||
bodySlot | any | ||
main slot |
WidgetDropdown
Usage
Example
9.823
Members online
(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
Name | Required | Type | Default Value |
---|---|---|---|
children | any | ||
children components | |||
className | string | ||
user classes for the main HTML tag | |||
innerRef | (object | Function | string) | ||
ref to the main tag | |||
header | string | ||
header text | |||
color | string | ||
backgroud color | |||
footerSlot | any | ||
footer slot content | |||
text | string | ||
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
Name | Required | Type | Default Value |
---|---|---|---|
children | any | ||
children components | |||
className | string | ||
user classes for the main HTML tag | |||
innerRef | (object | Function | string) | ||
ref to the main tag | |||
header | string | ||
header text | |||
text | string | ||
main text | |||
iconPadding | boolean | true | |
additional padding for icon | |||
color | string | ||
backgroud color | |||
footerSlot | any | ||
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
Name | Required | Type | Default Value |
---|---|---|---|
children | any | ||
children components | |||
className | string | ||
user classes for the main HTML tag | |||
innerRef | (object | Function | string) | ||
ref to the main tag | |||
header | string | ||
header text | |||
text | string | ||
main text | |||
footer | string | ||
footer text | |||
color | string | ||
backgroud color | |||
value | number | 25 | |
progress value | |||
inverse | boolean | ||
progress white option |
WidgetProgressIcon
Usage
Example
87.500
VisitorsScript
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
Name | Required | Type | Default Value |
---|---|---|---|
children | any | ||
children components | |||
className | string | ||
user classes for the main HTML tag | |||
innerRef | (object | Function | string) | ||
ref to the main tag | |||
header | string | ||
header text | |||
text | string | ||
main text | |||
color | string | ||
backgroud color | |||
value | number | 25 | |
progress value | |||
inverse | boolean | ||
progress white option | |||
progressSlot | any | ||
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
Name | Required | Type | Default Value |
---|---|---|---|
children | any | ||
children components | |||
className | string | ||
user classes for the main HTML tag | |||
innerRef | (object | Function | string) | ||
ref to the main tag | |||
header | string | ||
header text | |||
text | string | ||
main text |