Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
react-light-tour
Advanced tools
A lightweight and customizable React component to create a step-by-step tour guide for your application.
You can install the package via npm:
npm install react-light-tour
'use client';
import React, { useState } from 'react';
import Tour, { Steps } from 'react-light-tour';
const App = () => {
const [isTourRunning, setIsTourRunning] = useState(true);
const steps: Steps = [
{ selector: '#step1', content: 'This is the first step' },
{ selector: '#step2', content: 'This is the second step' },
{ selector: '.step3', content: 'This is the third step' },
];
return (
<div>
<button onClick={() => setIsTourRunning(true)}>Start Tour</button>
<Tour
isRun={isTourRunning}
steps={steps}
bodyScrollDisable={true}
buttonsClassName={{ next: 'next-btn', preview: 'prev-btn' }}
/>
<div id="step1">Step 1</div>
<div id="step2">Step 2</div>
<div id="step3">Step 3</div>
</div>
);
};
export default App;
The react-light-tour
component accepts the following props:
isRun
: Flag to start or stop the tour.steps
: Array of steps for the tour.buttonsClassName
: (Optional) Class names for next and preview buttons.saveKey
: (Optional) Key for saving tour completion state in local storage.nextText
: (Optional) Text for the next button.previewText
: (Optional) Text for the preview button.doneText
: (Optional) Text for the done button.bodyScrollDisable
: (Optional) body scrolling while tour is run.scrollLogicalPosition
: (Optional) scroll to center is default.FAQs
lightweight onboarding tour for react
We found that react-light-tour 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.