Skip to content

inhibitor1217/react-swipeablepanel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@inhibitor1217/react-swipeablepanel

Preview

Usage

$ yarn install @inhibitor1217/react-swipeablepanel

Example

import {
  SwipeablePanel,
  SwipeablePanelPageLabel,
  Axis,
} from "@inhibitor1217/react-swipeablepanel";

...

ReactDOM.render(
  <SwipeablePanel
    axis={Axis.horizontal}
    widgets={[SwipeablePanelPageLabel]}>
    {ids.map((id) => (
      <img src={`https://picsum.photos/id/${id}/200`} alt="image" key={id} />
    ))}
  </SwipeablePanel>,
  document.getElementById('swipeable_panel')
);

About

A swipeable panel module for react

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published