
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
runnel-react-carousel
Advanced tools
maybe because it has...
first install it from npm
npm i runnel-react-carousel
after installing it, make sure to import the component and the styles (just copy & paste the code below)
import RunnelCarousel from "runnel-react-carousel";
import "runnel-react-carousel/dist/runnel-react-carousel.css";
then you can use the component however you want. heres an exmaple:
<RunnelCarousel
height="500px"
width="80%"
controlsColor="dark"
arrowsPosition="bottom"
arrowsSize="md"
imagesDuration={4000}
images={[
{
src: "https://images.unsplash.com/photo-1462143338528-eca9936a4d09?q=80&w=2670&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
alt: "Bottom-up view of a forest",
position: "bottom",
},
{
src: "https://images.unsplash.com/photo-1458966480358-a0ac42de0a7a?q=80&w=2670&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
alt: "Tree in the middle of a beach",
position: "top",
fit: "scale-down",
duration: 8000,
},
{
src: "https://images.unsplash.com/photo-1421790500381-fc9b5996f343?q=80&w=1287&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
alt: "Trees next to a river in the forest",
position: "top",
},
]}
/>
ok here they are:
images
(required)src
(required)string
alt
string
(empty by default)description
string
(empty by default)className
string
(empty by default)fit
string
: cover, contain, fill, scale-down, or none (cover by default)position
string
: top-left, top, top-right, left, center, right, bottom-left, bottom, bottom-right (center by default)duration
number
in milliseconds (uses imagesDuration
by default if empty)height
(required)string
width
string
className
string
(empty by default)imagesClassName
string
(empty by default)firstImageIndex
number
(0 by default)autoplay
boolean
(true by default)imagesDuration
number
in milliseconds (5000 by default)loop
boolean
(true by default)transitionDuration
number
: 75, 100, 150, 200, 300, 500, 700, or 1000 (500 by default)controlsColor
string
: dark, light, transparent-dark, or transparent-light (dark by default)arrowsSize
string
: sm, md, lg, or xl (md by default)arrowsPosition
string
: middle, bottom, or bottom-center (middle by default)showDots
boolean
(true by default)showArrows
boolean
(true by default)a runnel is like a little river in the ground that allows water to flow
FAQs
A simple image carousel React component.
The npm package runnel-react-carousel receives a total of 16 weekly downloads. As such, runnel-react-carousel popularity was classified as not popular.
We found that runnel-react-carousel demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.