
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
react-carousel
Advanced tools
General purpose carousel component
/**
* Called when user clicks on an item.
*
* @typedef Carousel~onItemActivate
* @property {String} Key prop of the item
*/
/**
* Called when user clicks on buttons to scroll items (next or previous)
*
* @typedef Carousel~onItemsScroll
* @property {Number} index Index to scroll to
*/
/**
* @property {Carousel~activeItemId} string - Key prop of the item which is to be marked as active
* @property {Carousel~items[]} JSX - Array of JSX components which are to be set as content of carousel items
* @property {Carousel~firstVisibleIndex} number - Index to which the crousel is scrolled to. i.e the first index which is visible
* @property {Carousel~itemWidth} number - Width of each item in the carousel
* @property {Carousel~scrollStepDistance} number - Number of items to scroll at one time
* @property {Carousel~itemMargin} number - Margin between two items in the carousel
* @property {Carousel~controlWidth} number - Width of control buttons
* @property {Carousel~onItemActivate} function - Called when user clicks on an item
* @property {Carousel~onItemsScroll} function - Called when user clicks on control buttons
*/
git clone git@github.com:applaudience/react-carousel.git
cd ./react-carousel/example
npm install
npm start
For making changes in the component and checking them in development, you can run the example in dev mode. Dev mode assume you have exactly same directory structure for example
and src
directories's location as this repo. In dev mode, we add the component as an alias in webpack which allow us to check the changes instantaneously.
git clone git@github.com:applaudience/react-carousel.git
cd ./react-carousel/example
npm install
npm run dev
FAQs
React carousel.
The npm package react-carousel receives a total of 576 weekly downloads. As such, react-carousel popularity was classified as not popular.
We found that react-carousel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.