Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@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
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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.