
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
hy-image-slider-react
Advanced tools
ReactJS modules are simple but have many advantages, one of which is that you can customize them freely.
npm install hy-image-slider-react
// Add - Impport module //
import Slider from 'hy-image-slider-react';
//----//
const App = () => {
return (
<div>
// Add - Default components //
<Slider interval={1000} images={['banner-1.jpg', 'banner-1.jpg', 'banner-1.jpg']}/>
//----//
</div>
);
};
export default App;
Atribute | Key | Description | Status |
---|---|---|---|
images={key?} | ['banner-1.jpg', 'banner-1.jpg', 'banner-1.jpg'] | Insert image (local/url) | Required |
interval={key?} | 500 1000 3000 etc... | Set interval time | Required |
width={key?} | 600 1000 1500 etc... | Set width (px) | Optional |
height={key?} | 600 1000 1500 etc... | Set height (px) | Optional |
objectFit="key?" | fill contain cover scale-down none | Set Image Object | Optional |
hoverStop={key?} | true false | Image stops on hover | Optional |
borderRadius={key?} | 0 10 25 etc... | Set corner radius image | Optional |
hideButton={key?} | true false | Hide/Show button | Optional |
buttonTextNext="key?" | Any text | Set text button (Next) | Optional |
buttonTextPrev="key?" | Any text | Set text button (Prev) | Optional |
classSlider="key?" | Use class css | CSS Slider Container | Optional |
classImg="key?" | Use class css | CSS Slider images | Optional |
classButtonMain="key?" | Use class css | CSS Slider Button Container | Optional |
classButton="key?" | Use class css | CSS Slider Button | Optional |
<Slider
classSlider="mycss-slider"
classImg="mycss-slider-image"
classButtonMain="mycss-slider-button-container"
classButton="mycss-slider-button"
buttonTextPrev="Prev"
buttonTextNext="Next"
hideButton={false}
borderRadius={25}
hoverStop={true}
objectFit="cover"
height={500}
width={1000}
interval={3000}
images={['my-image-1.jpg', 'my-image-2.jpg', 'my-image-3.jpg']}
/>
<div classSlider="...">
</img classImg="..." />
<div classButtonMain="...">
<button classButton="..." />
<button classButton="..." />
</div>
</div>
Happy Coding :)
Follow Me: FOLLOW
FAQs
Image Slider For React
The npm package hy-image-slider-react receives a total of 0 weekly downloads. As such, hy-image-slider-react popularity was classified as not popular.
We found that hy-image-slider-react 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.