import { useState } from 'react'; import Swipeable from '../index'; const SwipeableExample = () => { const [ currentPage, setCurrentPage ] = useState( 0 ); return ( { setCurrentPage( index ); } } currentPage={ currentPage } pageClassName="example-page-component-class" hasDynamicHeight >
Page 1 - Swipe Left
Page 2 - Swipe Left or Right
Page 3 - Swipe Right
); }; SwipeableExample.displayName = 'Swipeable'; export default SwipeableExample;