Skip to content

Latest commit

 

History

History
 
 

nuxt

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Shuimo UI Nuxt module

npm version nuxt npm version npm downloads License Nuxt

Shuimo UI module for Nuxt

Features

  • 🧩 Automatically import components and styles on demand.
  • ✨ Provide Some useful layout components.

Quick Setup

  1. Add @shuimo-design/shuimo-ui-nuxt dependency to your project
npx nuxi@latest module add @shuimo-design/shuimo-ui-nuxt

That's it! You can now use Shuimo UI in your Nuxt app ✨

Usage

You can use shuimo-ui create a website like this:

Components: MLoadingPreview

We provide a component called MLoadingPreview. you can used it when you want to do some time-consuming operations like preload some assets and show a loading animation.

<template>
  <div>
    <client-only>
      <MLoadingPreview v-model="isLoading" v-if="isLoading" :preInit="preInit"/>
    </client-only>
    <your-main-display-component v-if="!isLoading">

    </your-main-display-component>
  </div>
</template>


<script setup lang="ts">

  const isLoading = ref(true);

  const preInit = async () => {
    await import('ASSET_URL');
    // or other time-consuming operations
    return true;
  };
</script>