shadcn-nuxt

Add shadcn-vue module to Nuxt

shadcn-nuxt downloads shadcn-nuxt version shadcn-nuxt license

shadcn-nuxtPaquetes similares:
Tendencia de descargas de npm
3 Años
🌟 Muestra el gráfico de uso en tiempo real en el README.md de shadcn-nuxt, simplemente copia el código a continuación.
## Usage Trend
[![Usage Trend of shadcn-nuxt](https://npm-compare.com/img/npm-trend/THREE_YEARS/shadcn-nuxt.png)](https://npm-compare.com/shadcn-nuxt#timeRange=THREE_YEARS)
Cumulative GitHub Star Trend
🌟 Muestra el gráfico de tendencia de GitHub Stars en el README.md de shadcn-nuxt, simplemente copia el código a continuación.
## GitHub Stars Trend
[![GitHub Stars Trend of shadcn-nuxt](https://npm-compare.com/img/github-trend/shadcn-nuxt.png)](https://npm-compare.com/shadcn-nuxt)
Detalle de estadísticas
Paquete
Descargas
Stars
Tamaño
Issues
Publicación
Licencia
shadcn-nuxt37,8658,5437.87 kB169hace 16 díasMIT
README para shadcn-nuxt

Shadcn Nuxt

npm version npm downloads License Nuxt

Shadcn Vue module for Nuxt.

Features

  • ⛰ Auto-import correct and relevant components
  • more to come...

Quick Setup

  1. Add shadcn-nuxt dependency to your project
# Using pnpm
pnpm add -D shadcn-nuxt

# Using yarn
yarn add --dev shadcn-nuxt

# Using npm
npm install --save-dev shadcn-nuxt
  1. Add shadcn-nuxt to the modules section of nuxt.config.ts
export default defineNuxtConfig({
  modules: [
    'shadcn-nuxt'
  ],
  shadcn: {
    /**
     * Prefix for all the imported component
     */
    prefix: '',
    /**
     * Directory that the component lives in.
     * @default "./components/ui"
     */
    componentDir: './components/ui'
  }
})

That's it! You can now use Shadcn Nuxt in your Nuxt app ✨

Development

# Install dependencies
npm install

# Generate type stubs
npm run dev:prepare

# Develop with the playground
npm run dev

# Build the playground
npm run dev:build

# Run ESLint
npm run lint

# Run Vitest
npm run test
npm run test:watch

# Release new version
npm run release