@byjohann/ui
![NPM version](https://img.shields.io/npm/v/@byjohann/ui?color=a1b858&label=)
A collection of Vue.js components for my projects.
Setup
pnpm add @byjohann/ui
npm i @byjohann/ui
yarn add @byjohann/ui
Nuxt Usage
Nuxt is supported out of the box, but the Vue components provided by this library need to be transpiled for the server-side rendering to work. Add the following to your nuxt.config.ts
:
export default defineNuxtConfig({
imports: {
presets: [
{
from: "@byjohann/ui",
imports: ["useModals"],
},
],
},
build: {
transpile: ["@byjohann/ui"],
},
vite: {
optimizeDeps: {
include: ["mapbox-gl"],
},
},
});
License
MIT License © 2023-PRESENT Johann Schopplich