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

elonehoo/nuxt-naive-ui

Repository files navigation

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

About

Zero-config Nuxt Framework for Naive-ui

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published