@nanta/ui

ant-design based ui framework.
1,246 2
Install
npm install @nanta/ui
Latest Version:0.1.11
Vue:3
License:MIT
Last Updated:Jul 7, 2023
Links: GitHub  ·  npm
Maintainer: aborn.jiang

nanta-ui

Download Version License

Ant-design based UI framework. Docs.

index

Features

  • Schema-style form/table design.
  • Light-weight ui component library.
  • Typescript support.
  • Support vue 3 and nuxt 3 (SSR support).
  • Vite support.
  • I18N support (Default 'en').

Deps

Setup

  1. Install nanta-ui
yarn add @nanta/ui
yarn install
  1. Configure
  • Vue 3 framework
    Install Antd plugin in main.ts
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
import { setupNanta } from '@nanta/ui';
import '@nanta/ui/dist/style.css';
const app = createApp(App);
setupNanta(app);
app.use(Antd).mount('#app');

Here is an example in docs, and another example nanta-ui-vue:

yarn docs
  • Nuxt 3 framework
    Auto-install Antd plguin, create nantaui.ts in <projectDir>/plugins/ with the following boilerplate:
// plugins/nantaui.ts
import { defineNuxtPlugin } from '#app';
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
import { setupNanta } from '@nanta/ui';
import '@nanta/ui/dist/style.css';

export default defineNuxtPlugin(nuxtApp => {
  setupNanta(nuxtApp.vueApp);
  nuxtApp.vueApp.use(Antd)
})

Here is an exmple nanta-ui-nuxt

  • Nuxt 3 Module setup (recommended)
    The simplest way to setup nanta in Nuxt env. Your can use nanta module.
yarn add @nanta/nuxt-nanta
yarn install

And add nanta module to nuxt.config.ts

export default defineNuxtConfig({
  modules: [
    'nanta',    
  ],
})

Notice

This project still in alpha stage, you can try it in non-production environment.

How to dev

  1. build package
yarn package
  1. test pkg in local
yarn pack  # pack local
npm install nanta-ui-v0.1.0-alpha.1.tgz  # install local
  1. publish to npm Remove nanta-ui && local deps befor publish it.
npm publish --access public

Related Packages

ant-design-icons

Ant Design Icons 是一套提取自 Ant Design 的高质量图标,你可以自由地在 React、Vue...

5,284 53
yz-base-ui

base ui

2,857
vueantd

ant.design use vue2

934 10
antdvx

基于 ant design vue 的 Vue3 组件库,包含一些通用模板和服务

3,747 7
@jview/icons-antd

Ant Design Icons Wrapper for Vue.js projects

2,963

Version History

Version Released Vue License
0.1.11 ^3.2.44 MIT
0.1.10 ^3.2.44 MIT
0.1.9 ^3.2.44 MIT
0.1.8 ^3.2.44 MIT
0.1.7 ^3.2.44 MIT
Pre-releases (25)
Version Released Vue License
0.1.0-rc.14 ^3.2.44 MIT
0.1.0-rc.13 ^3.2.44 MIT
0.1.0-rc.12 ^3.2.44 MIT
0.1.0-rc.11 3.2.40 MIT
0.1.0-rc.10 ^3.2.37 MIT