2.2.1 • Published 10 months ago
@coreui/icons-react v2.2.1
Status
Installation
npm install @coreui/icons
npm install @coreui/icons-react
or
yarn add @coreui/icons
yarn add @coreui/icons-react
Use
Single icon
import { CIcon } from '@coreui/icons-react';
import { cifAU } from '@coreui/icons';
...
render() {
return (
<CIcon icon={cilList} size="xxl"/>
)
}
...
All icons
import { CIcon } from '@coreui/icons-react';
import * as icon from '@coreui/icons';
...
render() {
return (
<CIcon icon={icon.cilList} size="xxl"/>
)
}
...
API
property | type | description |
---|---|---|
className | string | A string of all className you want applied to the component. |
customClassName | string | object | string[] | Use for replacing default CIcon component classes. Prop is overriding the 'size' prop. |
icon | string | string[] | Name of the icon placed in React object or SVG content. |
height | number | The height attribute defines the vertical length of an icon. |
size | sm | md |lg | xl | xxl | 3xl | 4xl | 5xl | 6xl | 7xl | 8xl | 9xl | Size of the icon. |
use | string | If defined component will be rendered using use tag. |
title | string | Title tag content. |
width | number | The width attribute defines the horizontal length of an icon. |
2.2.1
10 months ago
2.2.0
10 months ago
2.1.0
2 years ago
2.0.1
2 years ago
2.0.0-rc.6
3 years ago
2.0.0
3 years ago
2.0.0-rc.4
3 years ago
2.0.0-rc.5
3 years ago
2.0.0-rc.3
3 years ago
2.0.0-rc.1
3 years ago
2.0.0-rc.0
3 years ago
1.1.0
3 years ago
1.0.3
3 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago
1.0.0-rc.1
4 years ago
1.0.0-beta.5
4 years ago
1.0.0-beta.4
4 years ago
1.0.0-beta.2
4 years ago
1.0.0-beta.1
4 years ago
1.0.0-alpha.5
4 years ago
1.0.0-alpha.3
4 years ago
1.0.0-alpha.2
4 years ago
1.0.0-alpha.1
4 years ago
1.0.0-alpha.0
4 years ago