Skip to content

nuxt/ui

Nuxt UI

Nuxt UI

npm version npm downloads License Nuxt

Nuxt UI harnesses the combined strengths of Reka UI, Tailwind CSS, and Tailwind Variants to offer developers an unparalleled set of tools for creating sophisticated, accessible, and highly performant user interfaces.

Note

You are on the v4 branch, check out the v3 branch for Nuxt UI v3 or v2 branch for Nuxt UI v2.

Documentation

Visit https://ui4.nuxt.com to explore the documentation.

Templates

Kickstart your project with one of our ready-to-use Nuxt UI templates or follow the Installation Guide. Explore all available templates on the official templates page.

  • Starter — A minimal template to get started with Nuxt UI.
  • Landing — A modern landing page template powered by Nuxt Content.
  • Docs — A documentation template powered by Nuxt Content.
  • SaaS — A SaaS template with landing, pricing, docs and blog powered by Nuxt Content.
  • Dashboard — A dashboard template with multi-column layout.
  • Chat — An AI chatbot template with GitHub authentication and persistent chat history powered by Vercel AI SDK.
  • Portfolio — A sleek portfolio template to showcase your work, skills and blog powered by Nuxt Content.

Installation

pnpm add @nuxt/ui@alpha
yarn add @nuxt/ui@alpha
npm install @nuxt/ui@alpha
bun add @nuxt/ui@alpha

Nuxt

  1. Add the Nuxt UI module in your nuxt.config.ts:
export default defineNuxtConfig({
  modules: ['@nuxt/ui']
})
  1. Import Tailwind CSS and Nuxt UI in your CSS:
@import "tailwindcss";
@import "@nuxt/ui";

Learn more in the installation guide.

Vue

  1. Add the Nuxt UI Vite plugin in your vite.config.ts:
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import ui from '@nuxt/ui/vite'

export default defineConfig({
  plugins: [
    vue(),
    ui()
  ]
})
  1. Use the Nuxt UI Vue plugin in your main.ts:
import { createApp } from 'vue'
import { createRouter, createWebHistory } from 'vue-router'
import ui from '@nuxt/ui/vue-plugin'
import App from './App.vue'

const app = createApp(App)

const router = createRouter({
  routes: [],
  history: createWebHistory()
})

app.use(router)
app.use(ui)

app.mount('#app')
  1. Import Tailwind CSS and Nuxt UI in your CSS:
@import "tailwindcss";
@import "@nuxt/ui";

Learn more in the installation guide.

Contribution

Thank you for considering contributing to Nuxt UI. Here are a few ways you can get involved:

  • Reporting Bugs: If you come across any bugs or issues, please check out the reporting bugs guide to learn how to submit a bug report.
  • Suggestions: Have any thoughts to enhance Nuxt UI? We'd love to hear them! Check out the contribution guide to share your suggestions.

Local Development

Follow the docs to set up your local development environment and contribute.

Credits

License

Licensed under the MIT license.