You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have installed coreui/icons r2.0.1 via npm, and in src/index.js:
React.icons = icons
While, I try to use cli-cart as follow: <CIcon content="cil-cart" />
The console log tells me:
CIcon component: icon name 'cil-cart' does not exist in React.icons object. To use icons by name prop you need to make them available globally by adding them to React.icons object. CIcon component docs: https://coreui.io/react/docs/components/CIcon
I have installed coreui/icons r2.0.1 via npm, and in src/index.js:
React.icons = icons
While, I try to use cli-cart as follow:
<CIcon content="cil-cart" />
The console log tells me:
CIcon component: icon name 'cil-cart' does not exist in React.icons object. To use icons by
name
prop you need to make them available globally by adding them to React.icons object. CIcon component docs: https://coreui.io/react/docs/components/CIconI follow the steps in:
coreui/coreui-react#177
https://stackoverflow.com/questions/62840344/coreui-icon-doesnt-appear-in-my-react-js-app
But it doesn't show any icons? Do I miss something?
Thanks.
The text was updated successfully, but these errors were encountered: