nimiq-vitepress-theme
Version:
Nimiq UI theme for VitePress
19 lines (18 loc) • 570 B
JavaScript
import NqCard from "./components/NqCard.vue";
import NqGrid from "./components/NqGrid.vue";
import NqLargeCard from "./components/NqLargeCard.vue";
import Layout from "./layout/Layout.vue";
import "./assets/index.css";
import "virtual:group-icons.css";
export function defineNimiqThemeConfig(options) {
return {
Layout,
async enhanceApp(ctx) {
if (options?.enhanceApp)
options.enhanceApp(ctx);
ctx.app.component("NqCard", NqCard);
ctx.app.component("NqGrid", NqGrid);
ctx.app.component("NqLargeCard", NqLargeCard);
}
};
}