Skip to content

Preparation

Before using dynamic icons, please make sure that your project has installed element plus icons.

sh
$ npm install @element-plus/icons-vue
sh
$ yarn add @element-plus/icons-vue
sh
$ pnpm install @element-plus/icons-vue

Dynamic Icon

API

parameterdescriptiontypedefaultrequire
iconIcon name in Ant DesignStringundefinedtrue
colorIcon colorStringcurrentColorfalse
widthIcon widthStringundefinedfalse
heightIcon heightStringundefinedfalse

Released under the MIT License.