2.2.1 • Published 10 months ago

@coreui/icons-react v2.2.1

Weekly downloads
5,468
License
MIT
Repository
github
Last release
10 months ago

Status

npm package NPM downloads react

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

propertytypedescription
classNamestringA string of all className you want applied to the component.
customClassNamestring | object | string[]Use for replacing default CIcon component classes. Prop is overriding the 'size' prop.
iconstring | string[]Name of the icon placed in React object or SVG content.
heightnumberThe height attribute defines the vertical length of an icon.
sizesm | md |lg | xl | xxl | 3xl | 4xl | 5xl | 6xl | 7xl | 8xl | 9xlSize of the icon.
usestringIf defined component will be rendered using use tag.
titlestringTitle tag content.
widthnumberThe width attribute defines the horizontal length of an icon.