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
parameter | description | type | default | require |
---|---|---|---|---|
icon | Icon name in Ant Design | String | undefined | true |
color | Icon color | String | currentColor | false |
width | Icon width | String | undefined | false |
height | Icon height | String | undefined | false |