Socket
Socket
Sign inDemoInstall

vue3-carousel-nuxt

Package Overview
Dependencies
165
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue3-carousel-nuxt

My new Nuxt module


Version published
Weekly downloads
5.5K
decreased by-4.08%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

v1.1.1

compare changes

🩹 Fixes

  • Fix non respect of standard .mjs file name and upgrade dependencies (df0e2fb)

📖 Documentation

  • Use new nuxi module add command in installation (a07baa7)

❤️ Contributors

Readme

Source

This module integrates the Vue 3 Carousel component with Nuxt 3.

Installation

npx nuxi@latest module add vue3-carousel-nuxt

or with Yarn:

npx nuxi@latest module add vue3-carousel-nuxt

Usage

In your nuxt.config.ts (or nuxt.config.js), add the module:

export default {
  modules: [
    'vue3-carousel-nuxt'
  ]
}

With this configuration, you can now use the Carousel, Slide, Pagination, and Navigation components in your project. If you want to add a prefix to these component names, you can add a carousel configuration to your nuxt.config.ts:

export default {
  modules: [
    'vue3-carousel-nuxt'
  ],
  carousel: {
    prefix: 'MyPrefix'
  }
}

This will allow you to use the components with a prefix, like so: <MyPrefixCarousel />, <MyPrefixSlide />, etc.

Styling

The module automatically imports the default styles of Vue 3 Carousel. If you want to customize the styles, you can override them in your own style sheets:

/* Override Carousel styles in your CSS or SCSS files */
.carousel__slide {
  /* Your custom styles here */
}

Remember, you don't need to import the carousel.css again in your stylesheets, as the module already imports it. Simply write your custom styles in your CSS files.

Further References

For detailed information about the Vue 3 Carousel component, its usage, options and events, please refer to the official Vue 3 Carousel documentation.

To contribute, submit issues or pull requests, visit the Vue 3 Carousel GitHub repository.

FAQs

Last updated on 04 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc