-
-
Notifications
You must be signed in to change notification settings - Fork 280
Expand file tree
/
Copy path_UseActions.svelte
More file actions
38 lines (36 loc) · 770 Bytes
/
Copy path_UseActions.svelte
File metadata and controls
38 lines (36 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<div class="container">
<MyComponent
use={[
Pannable,
Swipeable,
[
Tappable,
{
bgColor: 'var(--mdc-theme-secondary)',
color: 'var(--mdc-theme-on-secondary)',
},
],
]}
>
Swipe me.<br />
Tap me.<br />
Press me.
</MyComponent>
</div>
<script lang="ts">
import MyComponent from './_UseActionsComponent.svelte';
import Pannable from './_UseActionsPannable';
import Swipeable from './_UseActionsSwipeable';
import Tappable from './_UseActionsTappable';
</script>
<style>
.container {
height: 80vh;
display: flex;
justify-content: center;
align-items: center;
position: relative;
border: 1px solid currentcolor;
overflow: hidden;
}
</style>