Vue Icon Component API

Icon API

Explore the API reference for the Vue Icon component and discover how to effectively utilize its props for customization.

On this page

CIcon

jsx
import { CIcon } from '@coreui/vue'
PropertyDefaultType
contentDeprecated since version 3.0undefinedstring, array

Use :icon="..." instead of

customClassNameundefinedstring, array, object

Use for replacing default CIcon component classes. Prop is overriding the 'size' prop.

iconundefinedstring, string[]

Name of the icon placed in React object or SVG content.

nameDeprecated since version 3.0undefinedstring

Use icon="..." instead of

sizeundefinedstring

Size of the icon. Available sizes: 'sm', 'lg', 'xl', 'xxl', '3xl...9xl', 'custom', 'custom-size'.

titleundefinedstring

Title tag content.

useundefinedstring

If defined component will be rendered using 'use' tag.

CIconSvg

jsx
import { CIconSvg } from '@coreui/vue'
PropertyDefaultType
customClassName-string, array, object

Use for replacing default CIconSvg component classes. Prop is overriding the 'size' prop.

height-number

The height attribute defines the vertical length of an icon.

size-string

Size of the icon. Available sizes: 'sm', 'lg', 'xl', 'xxl', '3xl...9xl', 'custom', 'custom-size'.

title-string

Title tag content.

width-number

The width attribute defines the horizontal length of an icon.