1.0.0 • Published 3 years ago
carousal-hub v1.0.0
carousal-hub
An easy to use responsive react bootstrap carousal component. Basically turns everything it wraps into Carousal items, it's that 'Easy'
Installation
npm i carousal-hubDependancies
The component if built with bootstrap and react-icons you should install them along with the package if they are not already installed in your project.
- Bootstrap
npm i bootstrap- React-Icons
npm i react-iconsUsage
props
Takes two optional props to show hints/text, 'hint'will take a string of text show show a normal hint/text, 'boldHint' will also take a string of text and will output a bold hint/text.
<EasyCarousal hint='Nornal text' boldHint='Bold text'>{children}</EasyCarousal>import package and wrap carousel items between EasyCarousal tags
import EasyCarousal from 'carousal-hub';
// Anything wrapped bellow will be a carousal item eg images and divs and everything else
  <EasyCarousal hint='What are you' boldHint='here to do?'>
    <div className="items full-width text-center">
        <h1 className="product">1</h1>      
    </div>
    <div className="items full-width text-center">
        <h1 className="product">2</h1>      
    </div>
    <div className="items full-width text-center">
        <h1 className="product">3</h1>      
    </div>
    <div className="items full-width text-center">
        <h1 className="product">4</h1>      
    </div>
    <div className="items full-width text-center">
        <h1 className="product">5</h1>      
    </div>
  </EasyCarousal>Preview

1.0.0
3 years ago