
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
@crave/farmblocks-carousel
Advanced tools
Images carousel that changes the active item automatically from times to times. See storybook
npm install @crave/farmblocks-carousel
import React, { Component } from "react";
import { render } from "react-dom";
import Carousel from "@crave/farmblocks-carousel";
const imageSet = [
{
image: "https://picsum.photos/640/?image=1080",
name: "Organic Pepper"
},
{
image: "https://picsum.photos/640/?image=824",
name: "Tomato"
},
{
image: "https://picsum.photos/640/?image=889",
name: "Grapefruit"
}
];
const App = () => <Carousel imageSet={imageSet} />;
render(<App />, document.getElementById("root"));
Property | Description | Type | Default |
---|---|---|---|
imageSet | The image set to be displayed | arrayOf({ image: string, name: string}) | |
onChange | Function to be called when the current image changes. It passes the image index as parameter | function | () => null |
onEnd | Function to be called when the last image has been displayed as active | function | () => null |
itemConfig | Configs to be applied on the image cards | object({ width: number, height: number, margin: number, fontSize: string, displayTime: number, transitionTime: number, border: { width: string, radius: string, color: string} | { width: 656, height: 328, margin: 20, fontSize: "88px", displayTime: 4, transitionTime: 2, border: { radius: "16px", width: "4px", color: "rgba(255, 255, 255, 0.56)" }} |
MIT
FAQs
Images carousel
The npm package @crave/farmblocks-carousel receives a total of 20 weekly downloads. As such, @crave/farmblocks-carousel popularity was classified as not popular.
We found that @crave/farmblocks-carousel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.