1.0.5 • Published 12 months ago

elegant-smooth-slider v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Elegant Smooth Slider

npm

license

Elegant Smooth Slider is a customizable image slider component for React applications. It allows you to display an array of images with various details and provides a smooth sliding effect.

Component Preview

Table of Contents

Installation

You can install this package using npm:

npm install elegant-smooth-slider

Or using yarn

yarn add elegant-smooth-slider

Usage

import React from 'react';
import ElegantSmoothSlider from 'elegant-smooth-slider';

const data = [
    { 
        img: "https://elegant-smooth-slider/img1.jpg", 
        title: "Elegant Smooth Slider ", description: "Elegant Smooth Slider is a customizable image slider component", 
        link: "https://elegant-smooth-slider/" 
    },
    
];

const App = () => {
  return (
    <div>
      <ElegantSmoothSlider 
        slides={data}
        automatedSlides={true}      {* Slide automated or not *}
        automatedDelay= {3}   {* Delay time in seccond ( if you want)*}
        slideButtonBackground="#e6e6e6"
        slideButtonIconColor="#000000"
        slideButtonBackgroundHover="#cccccc"
        slideButtonIconColorHover="#333333"
        buttontype="primary"        {* 'primary'  or  'secondary' *}
        imageTint={true}
        slidArrowButton={true}
        slideContent={true}
        contentTitle={true}
        contentDescription={true}
        contentLink={true}
        contentTitleColor="#f0f0f0"
        contentDescriptionColor="#f0f0f0"
        linkButtonColor="#e6e6e6"
        linkButtonColorHover="#cccccc"
        linkButtonTextColor="#000000"
        linkButtonTextColorHover="#333333"
        subImages={true}            
        subImagePosition="bottom"        {* 'bottom'  ,  'center' , 'top' *}
      />
    </div>
  );
};

export default App;

ElegantSmoothSlider (Props)

NameTypeDefaultDescription
slidesarrayNO DefaultArray of slide items.
automatedSlidesbooleantrueWhether slides should auto-slide (optional).
automatedDelaynumber3sDelay od slide animation in seccond (optional).
slideButtonBackgroundstring#e6e6e6Background color of slide buttons (optional).
slideButtonIconColorstring#000000Icon color of slide buttons (optional).
slideButtonBackgroundHoverstring#ccccccHover background color of slide buttons (optional).
slideButtonIconColorHoverstring#333333Hover icon color of slide buttons (optional).
buttontypestring'primary'Type of button ('primary' or 'secondary') (optional).
imageTintbooleanfalseWhether images should have a tint (optional).
slidArrowButtonbooleantrueWhether to show slide arrow buttons (optional).
slideContentbooleantrueWhether to display content (title, description) (optional).
contentTitlebooleantrueWhether to display the content title (optional).
contentDescriptionbooleantrueWhether to display the content description (optional).
contentLinkbooleantrueWhether to display the content link (optional).
contentTitleColorstring#f0f0f0Color of the content title (optional).
contentDescriptionColorstring#f0f0f0Color of the content description (optional).
linkButtonColorstring#e6e6e6Background color of link buttons (optional).
linkButtonColorHoverstring#ccccccHover background color of link buttons (optional).
linkButtonTextColorstring#000000Text color of link buttons (optional).
linkButtonTextColorHoverstring#333333Hover text color of link buttons (optional).
subImagesbooleantrueWhether to display sub-images (optional).
subImagePositionstring'bottom'Position of sub-images ('bottom' , 'center' or 'top') (optional).

Slide Items Types

KeyTypeDefaultDescription
imgstringN/AImage link
titlestringN/ATitle of the slide (optional)
descriptionstringN/ADescription of the slide (optional)
linkstringN/AURL link for the slide (optional)
buttonNamestringSee MoreName of the button (optional)
titleColorstring#e6e6e6Color of the title (optional)
descriptionColorstring#e6e6e6Color of the description (optional)

Example Of Array Of Data

    [
        { 
            img: "https://elegant-smooth-slider/img1.jpg", 
            title: "Elegant Smooth Slider ", description: "Elegant Smooth Slider is a customizable image slider component", 
            link: "https://elegant-smooth-slider/",
            buttonName: "See More",
            titleColor: "#e6e6e6"
            descriptionColor: "#e6e6e6"
        },
        
    ];
1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago

0.0.0

12 months ago