-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathnextDiff.vue
27 lines (27 loc) · 840 Bytes
/
nextDiff.vue
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
<template>
<div id="nextDiffSection" class="inline-flex items-center gap-1">
<button
id="nextDiff"
class="inline-flex items-center justify-center px-1 py-1 text-sm text-gray-600 transition-transform transform bg-gray-300 border border-gray-800 rounded-sm dark:border-gray-400 dark:text-white dark:bg-gray-800 align-center focus-visible:ring-4 active:scale-y-75 hover:scale-105 hover:shadow-lg"
aria-label="Go to next diff"
type="button"
@click="clickHandler"
>
<Down />
<span aria-hidden="true">Next diff</span>
</button>
</div>
</template>
<script lang="ts">
import Vue from 'vue'
import Down from '~/components/icons/down.vue'
export default Vue.extend({
components: { Down },
props: {
clickHandler: {
type: Function,
required: true,
},
},
})
</script>