!WARNING This project is in its early stages and will evolve. Expect frequent updates and potential changes. Feedback is welcome!
npx nuxi@latest module add --dev compodium
@compodium/vuepnpm add -D @compodium/vue
yarn add --dev @compodium/vue
npm install --save-dev @compodium/vue
bun add -D @compodium/vue
vite.config.ts:import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueDevTools from 'vite-plugin-vue-devtools'
import { compodium } from '@compodium/vue'
export default defineConfig({
plugins: [
vue(),
vueDevTools(),
compodium()
]
})
tsconfig.app.json{
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.vue",
"node_modules/@compodium/vue/dist/index.d.ts"
],
}
Contributions are welcome! ♥️
Currently, one way you can contribute is by adding examples for your favorite component library. You can find the Nuxt UI collection and examples here.
Local development
# Install dependencies
pnpm install
# Generate type stubs
pnpm dev:prepare
# Develop with the playground
pnpm dev
# Run ESLint
pnpm lint
# Run typechecks
pnpm typechecks
# Run Vitest
pnpm test