
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-plain-slider
Advanced tools
A simple draggable react slider component with typescript support.
These instructions will show you how to use the slider.
To install and set up the library, run:
$ npm install react-plain-slider
App.tsx
import "./App.css";
import { Slider, Slide } from "react-plain-slider";
const App = () => {
return (
<div className="app">
<Slider width="95%" height="300px">
<Slide className="awesome-slide">
<div>1</div>
</Slide>
<Slide className="awesome-slide">
<div>2</div>
</Slide>
<Slide className="awesome-slide">
<div>3</div>
</Slide>
<Slide className="awesome-slide">
<div>4</div>
</Slide>
<Slide className="awesome-slide">
<div>5</div>
</Slide>
<Slide className="awesome-slide">
<div>6</div>
</Slide>
<Slide className="awesome-slide">
<div>7</div>
</Slide>
</Slider>
</div>
);
};
export default App;
App.css
.app {
background: #f5efe6;
height: 100vh;
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
}
.app .awesome-slide {
background: #aebdca;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
border-radius: 15px;
}
.app .awesome-slide > div {
background: #7895b2;
width: 75%;
height: 50%;
display: flex;
justify-content: center;
align-items: center;
font-size: 4rem;
font-weight: bold;
border-radius: 15px;
color: #aebdca;
}
| Option | Type | Is required | Description |
|---|---|---|---|
| width | string | True | 'px' or '%' values |
| --- | --- | --- | --- |
| height | string | True | 'px' or '%' values |
| --- | --- | --- | --- |
| className | string | False | classname of outer div |
| --- | --- | --- | --- |
| innerClassName | string | False | classname of inner div |
| Option | Type | Is required | Description |
|---|---|---|---|
| className | string | False | classname of slide |
FAQs
Simple slider for your React project with Typescript support đź‘‹
We found that react-plain-slider demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.