nuxt-bezier
TypeScript icon, indicating that this package has built-in type declarations

1.11.0 • Public • Published

Nuxt Bezier

NPM version NPM downloads

This module integrates the @noction/vue-bezier component with Nuxt 3.

Demo

Install

npm install nuxt-bezier

Usage

Install

For integration is enough to add it into your nuxt.config.ts:

export default {
  modules: [
    'nuxt-bezier'
  ]
}

It will also import the necessary styles automatically.

Config

For configuration, use nuxtBezier key. There you can configure prefix and components options. Both of them are optional.

  • prefix - the value to prepend to the nuxtBezier components
  • components - specific transition components which should be mounted. By default, all of them are added.

Configuration example:

export default {
  nuxtBezier: {
    prefix: 'Prefix',
    components: ['FadeTransition']
  }
}

Appliance

Now, you're ready to use the transition components in your app. Here is a basic example.

<template>
    <fade-transition>
        <p v-show="show">Fade transition</p>
    </fade-transition>
</template>

<script setup>
const show = ref(true)
</script>

Reference

For more information about all available Props, please check the vue-bezier module, since this one only a wrapper for its integration in Nuxt3.

License

MIT © 50rayn

Readme

Keywords

none

Package Sidebar

Install

npm i nuxt-bezier

Weekly Downloads

25

Version

1.11.0

License

MIT

Unpacked Size

8.07 kB

Total Files

10

Last publish

Collaborators

  • 50rayn