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
When playing with _nav.js, I noticed that most of the icons do not work out of the box.
CIcon component: icon name 'cil3d' 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 too experienced this frustrating issue that is not documented. Apparently, not all of the free icons are set globally to React.icons. To see where this is accomplished, see this line in src/index.js: React.icons = icons
You can add any icons you need to the import in the src/assets/icons/index.js: import { cilApple, cil3d, cilGradient } from '@coreui/icons' export const icons = Object.assign({}, { cilApple, cil3d, cilGradient })
After that, you should be able to use the icons by name.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions
When playing with
_nav.js
, I noticed that most of the icons do not work out of the box.Examples include:
None of these seemed to work for the sidebar. I attempted to write out all the names of the icons via:
And its seems to be present, with the same names. What is going on here?
The text was updated successfully, but these errors were encountered: