🎛️Icons

Mantis Vuetify is pre-configured with the Ant Design Vue

Ant Design icons

Mantis is pre-configured with the most popular font library Ant design icons.

https://antdv.com/components/icon


import { PlusOutlined } from "@ant-design/icons-vue";

// usage
<PlusOutlined :style="{ fontSize: '20px' }" />
                            

Material Design icons

Material icons svg using vuetify setup.

https://vuetifyjs.com/en/features/icon-fonts/#mdi-js-svg

Make one different file for imports usable icons and use it.

MDI icon file: src/plugins/mdi-icon.ts

// if you want to use mdi new icon then add like this
import { mdiHome } from '@mdi/js';

export const icons = {
  home: mdiHome,
};
// Usage
<v-icon icon="$home"></v-icon> // Do not forgot to add $ syntax before icon name

Last updated