Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Latest commit

 

History

History
70 lines (52 loc) · 1.05 KB

README.md

File metadata and controls

70 lines (52 loc) · 1.05 KB

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