
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@wide/modulus-slider
Advanced tools
Enhanced slider component, based on `Swiper`, to be used with `@wide/modulus`.
Enhanced slider component, based on Swiper, to be used with @wide/modulus.
npm install @wide/modulus-slider --save
Register this component using Modulus:
import modulus from '@wide/modulus'
import Slider from '@wide/modulus-slider'
modulus.component('slider', Slider)
Import base scss styles (contains Swiper styles):
@use '@wide/modulus-slider';
/**
* Add pagination module for this example
* @tutorial https://swiperjs.com/swiper-api#modules
*/
@use 'node_modules/swiper/modules/pagination/pagination.scss';
And use the provided twig template:
{% include '@wide::modulus-slider' with {
webcomponent: true,
slides: [
'Some HTML',
'Some HTML again'
],
pagination: true,
dataset: {
sync: '#slider2'
}
} %}
Or build your own html:
<div class="slider swiper" is="slider" data-sync="#slider2">
<div class="swiper-wrapper">
<div class="slider_slide swiper-slide">
Some HTML
</div>
<div class="slider_slide swiper-slide">
Some HTML again
</div>
</div>
<div class="slider_pagination swiper-pagination"></div>
</div>
Extend the Slider class and change the configuration (see Swiper API):
import modulus from '@wide/modulus'
import Slider from '@wide/modulus-slider'
/**
* Add pagination module for this example
* @tutorial https://swiperjs.com/swiper-api#modules
*/
import { Pagination } from 'swiper'
modulus.component('slider', class extends Slider {
run() {
const config = {
slidesPerView: 1,
modules: [ Pagination ]
}
super.run({ config })
}
}
This package uses :
This project is licensed under the MIT License - see the licence file for details
FAQs
Enhanced slider component, based on `Swiper`, to be used with `@wide/modulus`.
We found that @wide/modulus-slider demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.