Skip to content

[CSidebarNavItem] Icon props are not passed to CIcon  #76

Closed
@CVeniamin

Description

@CVeniamin

I am trying to adjust the size of icon in the CSidebarNavItem by passing icon as an object, such as

<CSidebarNavItem 
  name="Dashboard" 
   to="/dashboard" 
   :icon="{name: 'cil-chart', size: '4xl'}"
/>

however the size prop is not passed to CIcon.
However, creating a CIcon with the size prop works just fine

<CIcon name="cil-chart" size="4xl"/>

After searching through the code I saw that CIconRaw is imported instead of CIcon

import CIcon from '@coreui/icons-vue/src/CIconRaw.vue'

Could it be that importing CIconRaw instead of CIcon is to blame here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions