@antify/ui-module
v2.13.31
Published
Nuxt integration for @antify/ui package.
Readme
Ui module
Nuxt integration for @antify/ui package.
Installation
Install package
pnpm i @antify/ui-moduleAdd it to your nuxt.config.ts
defineNuxtConfig({
modules: [
'@antify/ui-module'
]
})Usage
Do not install the @antify/ui package or use imports directly from it.
This module expose all components, types and helper form ui package through #ui-module
virtual alias.
It also expose all components to vue globally. You have not to import them in your components.
<script lang="ts" setup>
import {InputState} from '#ui-module';
</script>
<template>
<AntButton :state="InputState.info" />
</template>Plugins
Composables
Development
- Run
pnpm run dev:prepareto generate type stubs. - Use
pnpm run devto start playground in development mode.
Additional
SSR
SSR is not included in the UX definition, because applications does not require SSR. To keep the UX as simple as possible, we decided to not support SSR.
Therefore, make sure you disabled ssr in your nuxt config.
defineNuxtConfig({
ssr: false
})