You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/examples/simple-pattern.mdx
+188
Original file line number
Diff line number
Diff line change
@@ -4,5 +4,193 @@ import SimplePattern from '@site/src/components/examples/SimplePattern'
4
4
5
5
# Simple Pattern
6
6
7
+
Below is an example implementation of a simple pattern which utilizes the hooks provided by `react-swipeable` within a TypeScript context.
8
+
9
+
## Simple Pattern Code Source
10
+
11
+
You can see this full example as pure code within the [Pattern.tsx](https://github.com/FormidableLabs/react-swipeable/blob/main/examples/app/SimplePattern/pattern.tsx) file within the React-Swipeable repo directly.
Copy file name to clipboardExpand all lines: examples/app/SimplePattern/index.tsx
+1-4
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ import Carousel from './pattern';
7
7
functionSimplePattern(){
8
8
return(
9
9
<div>
10
-
<h5style={{marginBottom: '20px'}}>
10
+
<h5style={{marginBottom: '20px'}}>
11
11
<strong>👉 Swipe pattern</strong>
12
12
</h5>
13
13
<Carousel>
@@ -17,9 +17,6 @@ function SimplePattern() {
17
17
<Itemimg="https://unsplash.it/478/205"/>
18
18
<Itemimg="https://unsplash.it/479/205"/>
19
19
</Carousel>
20
-
<h6>
21
-
<ahref="https://github.com/FormidableLabs/react-swipeable/blob/main/examples/app/SimplePattern/pattern.tsx">See code</a> for example usage of <code>onTouchStartOrMouseDown</code> and <code>touchEventOptions</code>
0 commit comments