getting started

Installation

Learn how to install and configure the module in your Nuxt app.

  1. Install @nuxthq/ui dependency to your project:
yarn
yarn add -D @nuxthq/ui
  1. Add it to your modules section in your nuxt.config:
nuxt.config
export default defineNuxtConfig({
  modules: ['@nuxthq/ui']
})

That's it! You can now use all the components and composables in your Nuxt app ✨

As this module installs @nuxtjs/tailwindcss and @nuxtjs/color-mode for you, you should remove them from your modules and dependencies if you've previously installed them manually.

Playground

Play on StackBlitz

Options

KeyDefaultDescription
prefixuDefine the prefix of the imported components.
globalfalseExpose components globally.
icons['heroicons']Icon collections to load.

Edge

To use the latest updates pushed on the dev branch, you can use @nuxthq/ui-edge.

Update your package.json to the following:

package.json
{
  "devDependencies": {
    "@nuxthq/ui": "npm:@nuxthq/[email protected]"
  }
}

Then run npm install or yarn install.


Made by