JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q77620F
  • License MIT

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hand-moveable-slider) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Handle-Moveable-Slider

    Handle-Moveable-Slider to create a scrollable slider using mouse interactions.

    Installation

    Install the package using npm:

    npm install handle-moveable-slider

    Props

    • customStyles (optional): An object to pass custom CSS styles to the HandleMoveableSlider component. Default is {border: 'none'}, we can pass any other css what we can.

    Example

    Here is an example:

    import React from 'react';
    import HandleMoveableSlider from 'handle-moveable-slider';
    
    const App = () => (
      <HandleMoveableSlider customStyles={{border:'none'}}>
        <div style={{border:"1px solid black"}}>hello</div>
        <div style={{border:"1px solid black"}}>hello</div>
        <div style={{border:"1px solid black"}}>hello</div>
      </HandleMoveableSlider>
    );
    
    export default App;