
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
@stnew/carousel
Advanced tools
@stnew/carousel
An unstyled carousel component for React projects that allows for custom styling after import.
// require.js
const carousel = require('@stnew/carousel');
// es6
import Carousel from '@stnew/carousel';
items
- ReactNode[] Elements that will be cycled through and displayed. Must have at least 3 elements (otherwise, why are you using a carousel?).prevButton
- ReactNode Element used as the 'previous item'nextButton
- ReactNode Element used as the 'next item' button.button.startIndex
- number index of the element that will be shown first.autoRotate
- boolean toggle for the carousel to auto-rotate.autoRotateTimeout
- number time between auto-rotating (in milliseconds)carousel-container
- outer-most container for the carousel.carousel-button
- div element to which click handlers are attached. Acts as a wrapper for an optional element to act as the button.
carousel-button next
- the button wrapper element that cycles forward.carousel-button prev
- the button wrapper element that cycles backward.carousel-items
- wrapper for all carousel items.carousel-item-wrapper
- wrapper for each carousel item.
carousel-item-wrapper active
- the active carousel itemcarousel-item-wrapper prev
- the previously active carousel itemcarousel-item-wrapper next
- the next active carousel itemcarousel-indicators
- wrapper for all carousel indicators (meant to be optional visual indicators for progress through the carousel items).carousel-indicator
- individual carousel indicator
carousel-indicator active
- indicates the item that is currently activeFAQs
Unstyled carousel component that handles cycling states/logic.
The npm package @stnew/carousel receives a total of 1 weekly downloads. As such, @stnew/carousel popularity was classified as not popular.
We found that @stnew/carousel 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
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.