nuxt-naive
TypeScript icon, indicating that this package has built-in type declarations

0.0.18 • Public • Published

nuxt-naive - Zero-config Nuxt Framework for Naive-ui
Zero-config Nuxt Framework for Naive-ui

NPM version

Features

  • Zero-config required
  • Auto-import component and imports
  • unocss CSS support

Setup

npm

npm install nuxt-naive

yarn

yarn add nuxt-naive

pnpm

pnpm install nuxt-naive

Nuxt Config

export default defineNuxtConfig({
  modules: [
    'nuxt-naive'
  ],
})

Composables

<script setup lang="ts">
import { darkTheme } from 'naive-ui'
</script>

<template>
  <NConfigProvider :theme="darkTheme">
    <NGlobalStyle />
    <div>
      Nuxt module playground!
      <NButton>Default</NButton>
    </div>
  </NConfigProvider>
</template>

License

License

MIT License © 2023-Present Elone Hoo

Package Sidebar

Install

npm i nuxt-naive

Weekly Downloads

4

Version

0.0.18

License

MIT

Unpacked Size

11.1 kB

Total Files

13

Last publish

Collaborators

  • elonehoo