Skip to content

Register every icon globally

Applications that intentionally accept the larger initial module graph can register all exports:

ts
import * as FastElementPlusIconsVue from "@fast-element-plus/icons-vue";
import { createApp } from "vue";
import App from "./App.vue";

const app = createApp(App);

for (const [name, component] of Object.entries(FastElementPlusIconsVue)) {
	app.component(name, component);
}

app.mount("#app");

Prefer individual named imports for application code so bundlers can remove unused icons.