mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
Co-authored-by: Daniel Roe <daniel@roe.dev> Co-authored-by: Sébastien Chopin <seb@nuxt.com>
1.5 KiB
1.5 KiB
title, description, navigation
| title | description | navigation | ||
|---|---|---|---|---|
| nuxthq/ui | Components library as a Nuxt3 module using TailwindCSS based on TailwindUI. |
|
Installation
- Install
@nuxthq/uidependency to your project:
::code-group
yarn add -D @nuxthq/ui
npm install -D @nuxthq/ui
pnpm i -D @nuxthq/ui
::
- Add it to your
modulessection in yournuxt.config:
export default defineNuxtConfig({
modules: ['@nuxthq/ui']
})
::alert That's it! You can now use all the components and composables in your Nuxt app ✨ ::
Options
| Key | Default | Description |
|---|---|---|
prefix |
u |
Define the prefix of the imported components. |
global |
false |
Expose components globally. |
icons |
['heroicons'] |
Icon collections to load. |
Edge channel
To use the latest updates pushed on the dev branch, you can use @nuxthq/ui-edge.
Update your package.json to the following:
{
"devDependencies": {
"@nuxthq/ui": "npm:@nuxthq/ui-edge@latest"
}
}
Then run npm install or yarn install.