@inhibitor1217/react-swipeablepanel
v0.1.7
Published
A swipeable panel module for react
Downloads
2
Readme
@inhibitor1217/react-swipeablepanel
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')
);